login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A028352 A Golomb-like recurrence that decreases infinitely often. 0
2, 8, 6, 4, 2, 24, 22, 20, 18, 16, 14, 12, 10, 8, 6, 4, 2, 72, 70, 68, 66, 64, 62, 60, 58, 56, 54, 52, 50, 48, 46, 44, 42, 40, 38, 36, 34, 32, 30, 28, 26, 24, 22, 20, 18, 16, 14, 12, 10, 8, 6, 4, 2, 216, 214, 212, 210, 208, 206, 204, 202 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

The sequence is a solution to the recursion a(a(n)+n)=a(n)+4n which is similar to the Golomb recursion b(b(n)+kn)=2b(n)+kn, k=1,2...

LINKS

E. J. Barbeau, J. Chew and S. Tanny, A matrix dynamics approach to Golomb's recusion, Electronic J. Combinatorics, #4.1 16 1997.

FORMULA

a(1)=1, a(2*3^m+r)=8*3^m-2r with m=0, 1, 2..., 0<=r<=4*3^m-1. - Ralf Stephan (ralf(AT)ark.in-berlin.de), Jan 16 2003

a(n) = 12*3^floor(log(n/2)/log(3))-2*n - Benoit Cloitre (benoit7848c(AT)orange.fr), Jan 23 2003

PROG

(PARI) a(n) = if(n==1, 2, m=floor(log(n/2)/log(3)):r=n-2*3^m:8*3^m-2*r)

CROSSREFS

Sequence in context: A175803 A019986 A146943 * A132699 A206099 A021353

Adjacent sequences:  A028349 A028350 A028351 * A028353 A028354 A028355

KEYWORD

nonn,easy

AUTHOR

Simon Plouffe (simon.plouffe(AT)gmail.com)

EXTENSIONS

Edited by Ralf Stephan (ralf(AT)ark.in-berlin.de), Jan 16 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 22:48 EST 2012. Contains 206085 sequences.