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!)
A106450 a(n) = A004443(n) if n is odd, a(n) = A004443(n)/2 if n is even. 2
2, 3, 0, 1, 3, 7, 2, 5, 5, 11, 4, 9, 7, 15, 6, 13, 9, 19, 8, 17, 11, 23, 10, 21, 13, 27, 12, 25, 15, 31, 14, 29, 17, 35, 16, 33, 19, 39, 18, 37, 21, 43, 20, 41, 23, 47, 22, 45, 25, 51, 24, 49, 27, 55, 26, 53, 29, 59, 28, 57, 31, 63, 30, 61, 33, 67, 32, 65, 35, 71, 34, 69, 37, 75 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
FORMULA
a(4*n+1) = 4*n+3, a(4*n+2) = 2*n, a(4*n+3) = 4*n+1, a(4*n+4) = 2*n+3.
From Colin Barker, Apr 19 2016: (Start)
a(n) = ((2+4*i)*(-i)^n+(2-4*i)*i^n-(-3+(-1)^n)*n)/4 for n>0 where i is the imaginary unit.
a(n) = a(n-2)+a(n-4)-a(n-6) for n>6.
G.f.: (2+3*x-2*x^2-2*x^3+x^4+3*x^5+x^6) / ((1-x)^2*(1+x)^2*(1+x^2)).
(End)
From Ilya Gutkovskiy, Apr 19 2016: (Start)
a(n) = (4*floor(1/(n+1)) - (-1)^n*n + 3*n + 8*sin((Pi*n)/2) + 4*cos((Pi*n)/2))/4.
E.g.f.: 1 + cos(x) + x*cosh(x) + 2*sin(x) + x*sinh(x)/2. (End)
PROG
(PARI) Vec((2+3*x-2*x^2-2*x^3+x^4+3*x^5+x^6)/((1-x)^2*(1+x)^2*(1+x^2)) + O(x^50)) \\ Colin Barker, Apr 19 2016
CROSSREFS
Skipping the initial term (a(0)=2), this is row 2 of A106449.
Sequence in context: A072516 A320782 A191588 * A255961 A297328 A362079
KEYWORD
nonn,easy
AUTHOR
Antti Karttunen, May 21 2005
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 March 28 07:48 EDT 2024. Contains 371235 sequences. (Running on oeis4.)