[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A327306 a(n) = floor(3*n*r) - 3*floor(n*r), where r = sqrt(6). 5
0, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 2, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 2, 1, 2, 0, 2, 0, 2, 0, 1, 0, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 0, 1, 2, 1, 2, 0, 2, 0, 1, 0, 1, 2, 1, 2, 0, 2, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
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
The positions of 0's, 1's and 2's in {a(n) : n > 0} are given by A327307, A327308 and A327309.
Cf. A022840.
Sequence in context: A332685 A258196 A159955 * A053838 A342651 A275768
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 07 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 19:33 EDT 2024. Contains 375545 sequences. (Running on oeis4.)