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!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A024887 A067611 A366451 * A105803 A202268 A084985
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 11 2011
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 April 24 08:55 EDT 2024. Contains 371930 sequences. (Running on oeis4.)