login
A190485
Positions of 1 in A190483.
4
1, 4, 6, 8, 9, 11, 13, 16, 18, 21, 23, 25, 26, 28, 30, 33, 35, 37, 38, 40, 42, 45, 47, 49, 50, 52, 54, 55, 57, 59, 62, 64, 66, 67, 69, 71, 74, 76, 78, 79, 81, 83, 86, 88, 91, 93, 95, 96, 98, 100, 103, 105, 107, 108, 110, 112, 115, 117, 120, 122, 124, 125, 127, 129, 132, 134, 136, 137, 139, 141, 144, 146, 148, 149, 151, 153, 154, 156, 158
OFFSET
1,2
COMMENTS
See A190483.
LINKS
MATHEMATICA
r = Sqrt[2]; b = 2; c = 1;
f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
t = Table[f[n], {n, 1, 200}] (* A190483 *)
Flatten[Position[t, 0]] (* A190484 *)
Flatten[Position[t, 1]] (* A190485 *)
Flatten[Position[t, 2]] (* A190486 *)
PROG
(Python)
from sympy import sqrt, floor
r=sqrt(2)
def a190483(n): return floor((2*n + 1)*r) - 2*floor(n*r) - floor(r)
print([n for n in range(1, 501) if a190483(n)==1]) # Indranil Ghosh, Jul 02 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 11 2011
STATUS
approved