OFFSET
0,12
COMMENTS
3^a(n) is the highest power of 3 dividing A005130(n).
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
FORMULA
From Amiram Eldar, Feb 21 2021: (Start)
a(n) = a(n-1) + (s(2*n-2) + s(2*n-1) - s(n-1) - s(3*n-2))/2, where s(n) = A053735(n). (End)
MATHEMATICA
s[n_] := Plus @@ IntegerDigits[n, 3]; a[0] = 0; a[n_] := a[n] = a[n - 1] + (s[2*n - 2] + s[2*n - 1] - s[n - 1] - s[3*n - 2])/2; Array[a, 101, 0] (* Amiram Eldar, Feb 21 2021 *)
PROG
(Magma) A005130:=func<i | IsZero(i) select 1 else &*[Factorial(3*k+1)/Factorial(i+k): k in [0..i-1]]>; [Valuation(A005130(n), 3): n in [0..100]]; // Bruno Berselli, Aug 05 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Aug 04 2013, based on a suggestion from Victor H. Moll.
STATUS
approved