OFFSET
1,1
COMMENTS
All terms are congruent to 4 mod 13.
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
MAPLE
a:= proc(n) option remember; `if`(n=1, 4,
1+(t->a(t)*a(n-t))(iquo(n, 2)))
end:
seq(a(n), n=1..25); # Alois P. Heinz, Jul 04 2019
MATHEMATICA
a[1]=4; a[n_]:=a[n]=1+a[Floor[n/2]]*a[Ceiling[n/2]]; Table[a[n], {n, 1, 22}] (* Jean-François Alcover, Mar 21 2011 *)
PROG
(PARI) a(n)=if(n<2, if(n<1, 0, 4), 1+a(floor(n/2))*a(ceil(n/2))) /* Ralf Stephan */
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
EXTENSIONS
More terms from Ralf Stephan, Jan 10 2004
STATUS
approved