|
|
A172471
|
|
a(n) = floor(sqrt(2*n)).
|
|
11
|
|
|
0, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
COMMENTS
|
If k is even, k appears k+1 times; if k is odd, k appears k times. - N. J. A. Sloane, Jan 25 2021
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
Table[Floor[Sqrt[2n]], {n, 0, 80}]
|
|
PROG
|
(Magma) [Floor(Sqrt(2*n)) : n in [0..80]];
(Haskell)
(PARI) for(n=0, 50, print1(floor(sqrt(2*n)), ", ")) \\ G. C. Greubel, Jul 06 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|