A190451 [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(golden ratio,4,2) and []=floor.
2, 1, 3, 2, 0, 3, 1, 4, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 4, 2, 1, 3, 2, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 4, 2, 1, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 4, 2, 1, 3, 2, 0, 3, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 4, 2, 1, 3, 2, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 4, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 4, 2, 1, 3, 2, 0, 3, 1, 3, 2, 0, 3, 1, 0
Offset: 1
Keywords
Programs
-
Mathematica
r = GoldenRatio; b = 4; c = 2; f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r]; t = Table[f[n], {n, 1, 320}] Flatten[Position[t, 0]] Flatten[Position[t, 1]] Flatten[Position[t, 2]] Flatten[Position[t, 3]] Flatten[Position[t, 4]]
Comments