A064686 a(n) = number of n-digit base-3 biquams.
0, 2, 7, 23, 73, 227, 697, 2123, 6433, 19427, 58537, 176123, 529393, 1590227, 4774777, 14332523, 43013953, 129074627, 387289417, 1161999323, 3486260113, 10459304627, 31378962457, 94138984523, 282421147873, 847271832227
Offset: 1
Links
- Timothy Varghese and George Varghese, The Stash-Repair Method applied to Partitionable Numbers,
- Index entries for linear recurrences with constant coefficients, signature (5,-6).
Programs
-
Python
print([0]+[3**n - 2**(n-1) for n in range(1,29)]) # Alex Ratushnyak, Jul 02 2012
Formula
a(1) = 0, a(n) = 3^(n-1)-2^(n-2) for n>=2. - Alex Ratushnyak, Jul 02 2012
a(n) = 5*a(n-1)-6*a(n-2) for n>3. G.f.: -x^2*(3*x-2) / ((2*x-1)*(3*x-1)). - Colin Barker, May 27 2013
Comments