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!)
A190893 a(n) = [3en] - 3[en], where [ ] = floor. 5
2, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 1, 0, 2, 1, 0, 2, 1, 1, 0, 2, 1, 0, 2, 2, 1, 0, 2, 1, 0, 2, 2, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 1, 0, 2, 1, 0, 2, 1, 1, 0, 2, 1, 0, 2, 2, 1, 0, 2, 1, 0, 2, 2, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 1, 0, 2, 1, 0, 2, 1, 1, 0, 2, 1, 0, 2, 2, 1, 0, 2, 1, 0, 2, 2, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 1, 0, 2, 1, 0, 2, 1, 1, 0, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Suppose, in general, that a(n) = [(bn+c)r] - b[nr] - [cr]. If r > 0 and b and c are integers satisfying b >= 2 and 0 <= c <= b-1, then 0 <= a(n) <= b. The positions of 0 in the sequence a are of interest, as are the position sequences for 1,2,...,b. These b+1 (or b) position sequences comprise a partition of the positive integers.
LINKS
MATHEMATICA
f[n_] := Floor[3 n*E] - 3*Floor[n*E];
t = Table[f[n], {n, 1, 220}] (* A190893 *)
Flatten[Position[t, 0]] (* A191103 *)
Flatten[Position[t, 1]] (* A191104 *)
Flatten[Position[t, 1]] (* A191105 *)
f[n_]:=Module[{c=E*n}, Floor[3*c]-3*Floor[c]]; Array[f, 150] (* Harvey P. Dale, Feb 08 2013 *)
CROSSREFS
Cf. A191103, A191104, A191105 (3-way partition of N, from this sequence).
Sequence in context: A093073 A251635 A156319 * A030204 A083650 A138514
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 26 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 July 7 02:08 EDT 2024. Contains 374061 sequences. (Running on oeis4.)