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!)
A091828 a(n)=n-2*valuation(A000254(n),3). 0

%I #5 Mar 30 2012 18:39:22

%S 1,0,3,4,5,2,1,4,5,6,7,6,7,8,7,8,9,4,5,6,3,2,5,6,7,8,7,8,9,8,9,10,9,

%T 10,11,8,9,10,9,10,11,10,11,12,9,10,11,10,11,12,11,12,13,6,7,8,7,8,9,

%U 8,9,10,5,6,7,4,5,6,7,8,9,8,9,10,9,10,11,10,11,12,9,10,11,10,11,12,11,12,13

%N a(n)=n-2*valuation(A000254(n),3).

%F For n>7 a(3n)=a(n)+2; a(3n+1)=a(n)+3; (3n+2)=a(n)+4

%o (PARI) a(n)=if(n<2,1,n-2*valuation(n!*sum(i=1,n,1/i),3))

%Y Cf. A056792.

%K nonn

%O 1,3

%A _Benoit Cloitre_, Mar 09 2004

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 28 15:09 EDT 2024. Contains 372088 sequences. (Running on oeis4.)