login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A091828
a(n)=n-2*valuation(A000254(n),3).
0
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, 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, 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
OFFSET
1,3
FORMULA
For n>7 a(3n)=a(n)+2; a(3n+1)=a(n)+3; (3n+2)=a(n)+4
PROG
(PARI) a(n)=if(n<2, 1, n-2*valuation(n!*sum(i=1, n, 1/i), 3))
CROSSREFS
Cf. A056792.
Sequence in context: A144786 A247369 A009389 * A305972 A121845 A239639
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Mar 09 2004
STATUS
approved