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!)
A188167 a(2+4*n)=1+2*n, otherwise a(n)=2*n. 1
0, 2, 1, 6, 8, 10, 3, 14, 16, 18, 5, 22, 24, 26, 7, 30, 32, 34, 9, 38, 40, 42, 11, 46, 48, 50, 13, 54, 56, 58, 15, 62, 64, 66, 17, 70, 72, 74, 19, 78, 80, 82, 21, 86, 88, 90, 23, 94, 96, 98, 25, 102, 104, 106, 27, 110, 112, 114, 29, 118, 120, 122, 31, 126, 128, 130, 33, 134, 136, 138, 35, 142, 144, 146, 37, 150, 152, 154, 39 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = 2*a(n-4) - a(n-8).
a(n) = a(n-4) + (period 4: repeat [8, 8, 2, 8]).
G.f.: x*(2+x+6*x^2+8*x^3+6*x^4+x^5+2*x^6)/(1-x^4)^2. a(n) = (16 - 3*(1+(-1)^n)*(1-i^n))*n/8, where i=sqrt(-1). - Bruno Berselli, Apr 08 2011
MATHEMATICA
LinearRecurrence[{0, 0, 0, 2, 0, 0, 0, -1}, {0, 2, 1, 6, 8, 10, 3, 14}, 80] (* Harvey P. Dale, Nov 27 2012 *)
CROSSREFS
Sequence in context: A011133 A197806 A073675 * A156034 A160581 A021465
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Mar 23 2011
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 18 08:27 EDT 2024. Contains 371769 sequences. (Running on oeis4.)