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!)
A254046 Column index of n in A191450: a(3n) = 1, a(3n+1) = 1, a(3n+2) = 1 + a(n+1). 12

%I #43 Nov 16 2023 07:44:39

%S 1,2,1,1,3,1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,3,1,1,2,1,1,2,1,1,3,1,1,

%T 2,1,1,2,1,1,5,1,1,2,1,1,2,1,1,3,1,1,2,1,1,2,1,1,3,1,1,2,1,1,2,1,1,4,

%U 1,1,2,1,1,2,1,1,3,1,1,2,1,1,2,1,1,3,1,1,2,1,1,2,1,1,4,1,1,2,1,1,2,1,1,3,1,1,2,1,1,2,1,1,3,1,1,2,1,1,2,1,1,6,1,1,2,1,1,2

%N Column index of n in A191450: a(3n) = 1, a(3n+1) = 1, a(3n+2) = 1 + a(n+1).

%C Equally, the row index of n in A254051.

%C a(n) is the 3-adic valuation of A087289(n-1). - _Fred Daniel Kline_, Jan 11 2017

%H Antti Karttunen, <a href="/A254046/b254046.txt">Table of n, a(n) for n = 1..9842</a>

%F a(3n) = 1, a(3n+1) = 1, a(3n+2) = 1 + a(n+1).

%F a(n) = A253786(n) + 1.

%F a(n) = A253786(3n-1). - _Cyril Damamme_, Aug 04 2015

%F a(n) = A051064(2n-1), i.e., the 3-adic valuation of 6n-3. - _Cyril Damamme_, Aug 04 2015

%F Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 3/2. - _Amiram Eldar_, Nov 16 2023

%t With[{nmax=200},IntegerExponent[6Range[nmax]-3,3]] (* _Paolo Xausa_, Nov 10 2023 *)

%o (Scheme, with memoization-macro definec)

%o (definec (A254046 n) (if (= 2 (modulo n 3)) (+ 1 (A254046 (/ (+ 1 n) 3))) 1))

%Y One more than A253786.

%Y Cf. A253887 (the corresponding row index).

%Y Cf. A191450, A254047, A254051, A254052.

%Y Odd bisection of A051064.

%Y Cf. A007949, A087289.

%K nonn,easy

%O 1,2

%A _Antti Karttunen_, Jan 24 2015

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 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)