OFFSET
1,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..45
FORMULA
For n >= 1, a(n) = 3^(n^2) - A053290(n) = 3^(n^2) - (3^n - 1)*(3^n - 3)*...*(3^n - 3^(n-1)).
MAPLE
for n from 1 to 20 do printf(`%d, `, 3^(n^2) - product(3^n - 3^j, j=0..n-1)) od:
PROG
(PARI) a(n)={3^(n^2) - prod(j=0, n-1, 3^n - 3^j)} \\ Harry J. Smith, Jul 09 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Ahmed Fares (ahmedfares(AT)my-deja.com), Apr 20 2001
EXTENSIONS
More terms from James A. Sellers, Apr 23 2001
STATUS
approved