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!)
A191255 Fixed point of the morphism 0 -> 01, 1 -> 02, 2 -> 03, 3 -> 01. 8
0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
See A191250.
The asymptotic density of the occurrences of k = 0, 1, 2 and 3 is 1/2, 2/7, 1/7 and 1/14, respectively. The asymptotic mean of this sequence is 11/14. - Amiram Eldar, May 31 2024
LINKS
FORMULA
a(n) = 0 for odd n, otherwise a(n) is the unique number in {1,2,3} that is congruent to v2(n) modulo 3, where v2(n) = A007814(n) is the 2-adic valuation of n. - Jianing Song, Sep 21 2018 [Clarified by Jianing Song, May 30 2024]
Recurrence: a(2n-1) = 0, a(2n) = 1, 2, 3, 1 for a(n) = 0, 1, 2, 3 respectively. - Jianing Song, May 30 2024
MATHEMATICA
t = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {0, 2}, 2 -> {0, 3}, 3 -> {0, 1}}] &, {0}, 9] (* this sequence *)
Flatten[Position[t, 0]] (* A005408, the odds *)
a = Flatten[Position[t, 1]] (* A067368 *)
b = Flatten[Position[t, 2]] (* A213258 *)
a/2 (* A191257 *)
b/4 (* a/2 *)
PROG
(PARI) A191255(n) = if(n%2, 0, my(e=valuation(n, 2)%3); if(!e, 3, e)); \\ Antti Karttunen, May 28 2024, after Jianing Song's Sep 21 2018 formula
CROSSREFS
Positions of 0 or 3: A191257; positions of 0: A005408; positions of 1: A067368; positions of 2: A213258.
Sequence in context: A346070 A191258 A254990 * A007814 A265330 A272216
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 28 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 August 2 12:55 EDT 2024. Contains 374848 sequences. (Running on oeis4.)