A238976 a(n) = ((3^(n-1)-1)^2)/4.
0, 1, 16, 169, 1600, 14641, 132496, 1194649, 10758400, 96845281, 871666576, 7845176329, 70607118400, 635465659921, 5719195722256, 51472775849209, 463255025689600, 4169295360346561, 37523658630539536, 337712928837117289, 3039416363020840000, 27354747277647913201, 246192725530212278416
Offset: 1
Links
- Kival Ngaokrajang, Illustrations of initial terms
- Eric Weisstein's World of Mathematics, Cantor Square Fractal
- Index entries for linear recurrences with constant coefficients, signature (13,-39,27)
Programs
-
PARI
a(n) = ((3^(n-1)-1)^2)/4; \\ Joerg Arndt, Mar 08 2014
Formula
a(n) = (A024023(n-1))^2/4.
G.f.: x*(3*x + 1)/((1-x)*(1-3*x)*(1-9*x)). - Ralf Stephan, Mar 14 2014
Comments