OFFSET
0,3
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..10201
FORMULA
a(n) = floor(1/(sqrt(n)-floor(sqrt(n)))) for n not a square; a(n) = 0 otherwise. - Andrew Howroyd, Oct 02 2019
EXAMPLE
First five rows:
0
0 2 1
0 4 2 1 1
0 6 3 2 1 1 1
0 8 4 2 2 1 1 1 1
PROG
(PARI) T(n, k) = 2*n\k;
tabf(nn) = for (n=0, nn, for (k=1, 2*n+1, print1(T(n, k), ", ")); print()); \\ Michel Marcus, Sep 30 2016
(PARI) a(n)={if(n<1, 0, my(t=sqrtint(n-1)); 2*t\(n-t^2))} \\ Andrew Howroyd, Oct 02 2019
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Clark Kimberling, Feb 03 2004
EXTENSIONS
Offset corrected and missing a(99) inserted by Andrew Howroyd, Oct 02 2019
STATUS
approved