login
A181712
a(n) = floor(3*n*phi) - floor(2*n*phi) - floor(n*phi), where phi = (1+sqrt(5))/2, the golden ratio.
3
0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1
OFFSET
1,1
FORMULA
a(n) = [3*n*phi]-[2*n*phi]-[n*phi], where [ ] denotes the floor function and phi = (1+sqrt(5))/2.
MATHEMATICA
A181712[n_] := #[3] - #[2] - #[1] & [Floor[n*#*GoldenRatio] &];
Array[A181712, 100] (* Paolo Xausa, Sep 23 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Nov 07 2010
STATUS
approved