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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A083417 Primitive recursive function r(z, r(s, r(s, r(s, p_2)))) at (n, 0). 1
0, 1, 2, 1, 0, 5, 2, 3, 3, 2, 2, 3, 4, 1, 8, 5, 4, 2, 2, 3, 3, 2, 2, 7, 2, 9, 5, 2, 12, 9, 7, 5, 4, 2, 2, 3, 4, 1, 8, 5, 4, 2, 2, 3, 3, 2, 2, 15, 8, 5, 1, 43, 20, 13, 10, 3, 14, 7, 3, 11, 8, 3, 8, 5, 4, 2, 2, 3, 4, 1, 24, 13, 5, 4, 2, 11, 4, 5, 5, 4, 1, 13, 6, 5, 5, 4, 2, 7, 5, 3, 1, 3, 3, 2, 2, 31, 14, 10, 3 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

REFERENCES

S. Wolfram, A New Kind of Science, 2001, p. 908.

LINKS

Charles R Greathouse IV, Table of n, a(n) for n = 0..10000

MAPLE

z := x -> 0: s := x -> (1 + op(1, x)): p := x -> subs(q = x, y -> op(q, y)): c := x -> subs(q = x, y -> eval((op(1, q))([(seq(op(i, q), i = 2..nops(q)))(y)]))): r := x -> subs(q = x, y -> eval(`if`(op(1, y) = 0, (op(1, q))([op(2, y)]), (op(2, q))([r(q)([op(1, y) - 1, op(2, y)]), op(1, y) - 1, op(2, y)])))): seq(r([z, r([s, r([s, r([s, p(2)])])])])([i, 0]), i = 0..109);

PROG

(PARI) f(x, y)=(y+2)<<ceil(log(ceil((x+2)/(y+2)))/log(2))-2-x

a(n)=my(t, y); for(k=1, n, y=k; for(i=1, t, y=f(y, i)); t=y); t

A(n)=my(v=vector(n), t, y); v[1]=1; for(k=2, n, y=k; for(i=1, t, y=f(y, i)); v[k]=t=y); v \\ Charles R Greathouse IV, Jan 25 2012

CROSSREFS

Sequence in context: A103185 A130513 A114596 * A021479 A073583 A060136

Adjacent sequences:  A083414 A083415 A083416 * A083418 A083419 A083420

KEYWORD

nonn

AUTHOR

Alex Fink (a00(AT)shaw.ca), Jun 08 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 16 06:41 EST 2012. Contains 205862 sequences.