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”).

A321133
a(n) = 3*a(n-1) + 10*a(n-2), n >= 2; a(0)=-1, a(1)=23.
3
-1, 23, 59, 407, 1811, 9503, 46619, 234887, 1170851, 5861423, 29292779, 146492567, 732405491, 3662142143, 18310481339, 91552865447, 457763409731, 2288818883663, 11444090748299, 57220461081527, 286102290727571, 1430511482997983, 7152557356269659, 35762786898788807, 178813934259063011
OFFSET
0,2
FORMULA
a(n) = 3*5^n - 4*(-2)^n.
G.f.: (-1+26*x)/((1-5*x)*(1+2*x)).
a(n) == 7*A320469(n)*A224473(n) mod 10^n.
a(n)*A224473(n) == 7*A320469(n) mod 10^n.
MATHEMATICA
LinearRecurrence[{3, 10}, {-1, 23}, 30] (* Harvey P. Dale, Mar 11 2023 *)
PROG
(PARI) {a(n) = 3*5^n-4*(-2)^n}
(PARI) N=40; x='x+O('x^N); Vec((-1+26*x)/((1-5*x)*(1+2*x)))
CROSSREFS
Cf. A053428, A224473 (trimorphic number), A320468, A320469.
Sequence in context: A142107 A107208 A289735 * A055821 A080822 A068363
KEYWORD
sign,easy
AUTHOR
Seiichi Manyama, Aug 27 2019
STATUS
approved