Entropic elasticity of an ideal chain