OFFSET
1,2
COMMENTS
This sequence appears at first to be the sequence of odd numbers but then rapidly becomes something different altogether. It is a good example of why more than a few terms are needed to check a hypothesis.
Useful for practicing the method of finite differences.
REFERENCES
A. Watson and J. Mason, Mathematics as a Constructive Activity, LEA London, 2005, p. 162.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..5000
Mike Shepperd, Method of Finite Differences
Index entries for linear recurrences with constant coefficients, signature (5, -10, 10, -5, 1).
FORMULA
O.g.f.: -x*(1-2*x+2*x^3+23*x^4)/(-1+x)^5 . - R. J. Mathar, Feb 19 2008
a(0)=1, a(1)=3, a(2)=5, a(3)=7, a(4)=33, a(n)=5*a(n-1)-10*a(n-2)+ 10*a(n-3)- 5*a(n-4)+a(n-5). - Harvey P. Dale, Aug 18 2011
EXAMPLE
a(5) = 33 is the first term that breaks with the odd number pattern.
MAPLE
A137864 := proc(n) return n^4-10*n^3+35*n^2-48*n+23: end: seq(A137864(n), n=1..100); # Nathaniel Johnston, May 09 2011
MATHEMATICA
Table[n^4-10n^3+35n^2-48n+23, {n, 50}] (* or *) LinearRecurrence[ {5, -10, 10, -5, 1}, {1, 3, 5, 7, 33}, 50] (* Harvey P. Dale, Aug 18 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Christopher Martin (christopher.j.martin(AT)gmail.com), Feb 17 2008
EXTENSIONS
More terms from R. J. Mathar, Feb 19 2008
STATUS
approved