OFFSET
0,3
COMMENTS
Let k and t be positive integers and consider a(n) = k*a(n-1)+t*a(n-2) for n>=2, with a(0)=0, a(1)=1.
The roots of its characteristic equation are r1 = (k+sqrt(k^2+4t))/2 and r2=(k-sqrt(k^2+4t))/2. Hence, the solution to the recurrence relation is the sequence {a(n)} where a(n) = alpha1*r1^n + alpha2*r2^n. It can be shown that alpha1 = 1/sqrt(k^2+4t) and alpha2 = -alpha1. It can be shown also that |r2/r1|< 1. Thus, a(n+1)/a(n) converges to r1 as n approaches infinity.
Note that limit a(n+1)/a(n) = 15 with k=12 and t=45. Thus, we use this as the name of the sequence.
If n > 25, then |a(n+1)/a(n) - 15| < 10^(-16).
a(n+2) is the number of strings of length n containing the 12-ary digits 0,1,...,9,A,B or any of the 45 two-consecutive digits C0,C1,...,C9,CA,...,CZ,Ca,...,Ci where A corresponds to 10, B to 11, ..., Z to 35, a to 36, ..., i to 44.
LINKS
FORMULA
MATHEMATICA
Table[(15^n-(-3)^n)/18, {n, 0, 20}] (* or *) LinearRecurrence[{12, 45}, {0, 1}, 20] (* Harvey P. Dale, Apr 29 2019 *)
PROG
(PARI) a(n) = (15^n - (-3)^n)/18; \\ Michel Marcus, Mar 16 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Felix P. Muga II, Mar 14 2014
STATUS
approved