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
Antti Karttunen, Table of n, a(n) for n = 1..65537
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
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
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 28 2011
STATUS
approved