OFFSET
1,1
COMMENTS
Triangular numbers of the form (5^(2x)*2^(2x+1)-10^x-1)/9. - Harvey P. Dale, Sep 16 2019
LINKS
Colin Barker, Table of n, a(n) for n = 1..500
Jiri Sedlacek, Trojuhelnikova cisla, In: Jiří Sedláček (author): Faktoriály a kombinační čísla. (Czech). Praha: Mladá fronta, 1964. pp. 60-71.
Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
For n >= 1, a(n) = 2..21..1; n_times 2 followed with n_times 1.
From Colin Barker, Sep 13 2018: (Start)
G.f.: 3*x*(7 - 40*x) / ((1 - x)*(1 - 10*x)*(1 - 100*x)).
a(n) = 111*a(n-1) - 1110*a(n-2) + 1000*a(n-3) for n>3
(End)
MATHEMATICA
Select[Table[FromDigits[Join[PadRight[{}, n, 2], PadRight[{}, n, 1]]], {n, 20}], OddQ[ Sqrt[8#+1]]&] (& or *) Select[Table[(5^(2x) 2^(2x+1)-10^x-1)/9, {x, 20}], OddQ[Sqrt[8#+1]]&] (* Harvey P. Dale, Sep 16 2019 *)
PROG
(PARI) Vec(3*x*(7 - 40*x) / ((1 - x)*(1 - 10*x)*(1 - 100*x)) + O(x^20)) \\ Colin Barker, Sep 13 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ctibor O. Zizka, Sep 12 2018
STATUS
approved