login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A039825 a(n) = floor((n^2 + n + 8) / 4). 0
2, 3, 5, 7, 9, 12, 16, 20, 24, 29, 35, 41, 47, 54, 62, 70, 78, 87, 97, 107, 117, 128, 140, 152, 164, 177, 191, 205, 219, 234, 250, 266, 282, 299, 317, 335, 353, 372, 392, 412, 432, 453, 475, 497, 519, 542, 566, 590, 614, 639 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Number of different coefficient values in expansion of Product_{i=1..n} (1 + q^2 + q^4 + ... + q^(2i)).
The given terms have a second difference that is periodic with the period 1, 0, 0, 1, ... of length 4, an implicit recurrence. - John W. Layman, Jan 23 2001
LINKS
FORMULA
O.g.f.: -x*(2*x^4 - 4*x^3 + 4*x^2 - 3*x + 2)/((x-1)^3*(x^2+1)). - R. J. Mathar, Dec 05 2007
a(n) = A039823(n) + 1. - Bruno Berselli, Jul 25 2012
a(n) = 3*a(n-1) - 4*a(n-2) + 4*a(n-3) - 3*a(n-4) + a(n-5). - Wesley Ivan Hurt, May 08 2022
PROG
(Magma) [Floor((n^2+n+8)/4): n in [1..50]]; // Bruno Berselli, Jul 25 2012
CROSSREFS
Cf. A039823.
Sequence in context: A281783 A224854 A074752 * A126256 A347646 A062438
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 16:08 EDT 2024. Contains 371794 sequences. (Running on oeis4.)