OFFSET
1,1
COMMENTS
See A190332.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 4*n + floor(n*sqrt(3)).
From Miko Labalan, Dec 17 2016: (Start)
a(n) = floor(n*(4+sqrt(3))) = 4*n + A022838(n);
For n > 0, a(n) = 6*floor(n*(sqrt(3)-1)) + 5*floor(n*(2-sqrt(3))) + 5;
(End)
MAPLE
r:=1: s:=sqrt(3): t:=1/s: seq(n+floor(n*r/t)+floor(n*s/t), n=1..70); # Muniru A Asiru, Apr 05 2018
MATHEMATICA
PROG
(Magma) [4*n+Floor(n*Sqrt(3)): n in [1..60]]; // Vincenzo Librandi, Dec 18 2016
(PARI) for(n=1, 100, print1(4*n + floor(n*sqrt(3)), ", ")) \\ G. C. Greubel, Apr 04 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 08 2011
STATUS
approved