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!)
A168090 a(n) = (1 - (n mod 3) mod 2)*2^(floor(n/3) + (n mod 3)/2 ). 1
1, 0, 2, 2, 0, 4, 4, 0, 8, 8, 0, 16, 16, 0, 32, 32, 0, 64, 64, 0, 128, 128, 0, 256, 256, 0, 512, 512, 0, 1024, 1024, 0, 2048, 2048, 0, 4096, 4096, 0, 8192, 8192, 0, 16384, 16384, 0, 32768, 32768, 0, 65536, 65536, 0, 131072, 131072, 0, 262144, 262144, 0, 524288 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Equals the INVERT transform of (1, -1, 3, -3, 3, -3, ...) (with infinitely repeating 3, -3).
REFERENCES
K. Rosen, Discrete Mathematics and Its Applications, McGraw-Hill Science/Engineering/Math; 6 edition (Jul 26 2006), Section 4.3 Exercise 6b
LINKS
FORMULA
From Colin Barker, Aug 21 2016: (Start)
a(n) = 2*a(n-3) for n>2.
G.f.: (1+2*x^2) / (1-2*x^3).
(End)
MATHEMATICA
f[n_] := 2^(Floor[n/3] + Mod[n, 3]/2) Mod[1 - Mod[n, 3], 2]; Array[f, 60, 0] (* Robert G. Wilson v, Aug 03 2010 *)
PROG
(PARI) a(n)=[1, 0, 2][n%3+1]<<(n\3) \\ Charles R Greathouse IV, Jul 12 2016
(PARI) Vec((1+2*x^2)/(1-2*x^3) + O(x^50)) \\ Colin Barker, Aug 21 2016
CROSSREFS
Sequence in context: A181615 A141333 A262967 * A078029 A078030 A262056
KEYWORD
easy,nonn
AUTHOR
_Frank Cheng_, Nov 18 2009
EXTENSIONS
More terms from Robert G. Wilson v, Aug 03 2010
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 16 16:13 EDT 2024. Contains 371749 sequences. (Running on oeis4.)