Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A122164
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A122164 a(0) = 0, a(1) = 1, s = 0; for n >= 2, if a(n-1) is even and s = 0 then set a(n) = a(n-1)/2 and s = 1; otherwise set a(n) = a(n-1) + a(n-2) and s = 0. +0
2
0, 1, 1, 2, 1, 3, 4, 2, 6, 3, 9, 12, 6, 18, 9, 27, 36, 18, 54, 27, 81, 108, 54, 162, 81, 243, 324, 162, 486, 243, 729, 972, 486, 1458, 729, 2187, 2916, 1458, 4374, 2187, 6561, 8748, 4374, 13122, 6561, 19683, 26244, 13122, 39366, 19683, 59049, 78732, 39366 (list; graph; listen)
OFFSET

0,4

FORMULA

For i >= 1, a(5i) = 3^i, a(5i+1) = 4*3^(i-1), a(5i+2) = 2*3^(i-1), a(5i+3) = 2*3^i, a(5i+4) = 3^i. - N. J. A. Sloane (njas(AT)research.att.com), Aug 06 2008

O.g.f.: x(-1-x-2x^2-x^3-3x^4-x^5+x^6)/(3x^5-1). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 07 2008]

CROSSREFS

Cf. A000045, A122597. Records give A000792.

Sequence in context: A026249 A130527 A026366 this_sequence A076632 A105646 A059126

Adjacent sequences: A122161 A122162 A122163 this_sequence A122165 A122166 A122167

KEYWORD

nonn

AUTHOR

Philip van den Bossche (filip020667(AT)hotmail.com), Aug 03 2008

EXTENSIONS

Edited by N. J. A. Sloane (njas(AT)research.att.com), Aug 06 2008

Extended by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Aug 07 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research