login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A018244
A self-generating sequence: there are a(n) (k+1)'s between successive k's, where k=3.
2
3, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4, 3, 4, 4, 4, 4, 3, 4, 4, 4
OFFSET
1,1
MAPLE
k := 3; A018244 := proc(n) global k; floor(n*(k+sqrt(k^2+4*k))/2)-floor((n-1)*(k+sqrt(k^2+4*k))/2); end;
CROSSREFS
Sequence in context: A143490 A007485 A280356 * A113311 A255176 A288177
KEYWORD
nonn
STATUS
approved