OFFSET
0,3
LINKS
Clark Kimberling, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = floor(3*n*r) - 3*floor(n*r), where r = sqrt(6).
MATHEMATICA
r = Sqrt[6]; z = 300;
t = Table[Floor[3 n*r] - 3 Floor[n*r], {n, 0, z}]
PROG
(Python)
from math import isqrt
def A327306(n): return isqrt(9*(m:=6*n*n))-3*isqrt(m) # Chai Wah Wu, Aug 04 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 07 2019
STATUS
approved