|
|
A016142
|
|
Expansion of 1/((1-3x)(1-9x)).
|
|
9
|
|
|
1, 12, 117, 1080, 9801, 88452, 796797, 7173360, 64566801, 581120892, 5230147077, 47071500840, 423644039001, 3812797945332, 34315186290957, 308836690967520, 2779530261754401, 25015772484929772, 225141952751788437
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
a(n) is the number of lattices L in Z^(n+1) such that the quotient group Z^(n+1) / L is C_9. - Álvar Ibeas, Nov 29 2015
In the game of SET with four attributes there are 1080 potential SETs. See A090245. In the generalized game of SET with different numbers of attributes, the number of potential SETs is a(n+1). - Robert Price, Oct 14 2017
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (1/6)*(9^(n+1) - 3^(n+1)).
a(n-1) = Sum_{i=1..n} binomial(n, i)*3^(n-i)*6^(i-1). - Sam Handler (sam_5_5_5_0(AT)yahoo.com), Jun 29 2004
|
|
MATHEMATICA
|
CoefficientList[Series[1/((1-3x)(1-9x)), {x, 0, 20}], x] (* or *) Table[ (9^(n+1) -3^(n+1))/6, {n, 0, 20}] (* Harvey P. Dale, Apr 03 2011 *)
Table[ncards = 3^nattr; (ncards*(ncards - 1))/6, {nattr, 1, 20}] (* Robert Price, Oct 14 2017 *)
|
|
PROG
|
(Sage) [lucas_number1(n, 12, 27) for n in range(1, 20)] # Zerinvary Lajos, Apr 27 2009
(PARI) a(n) = (1/6)*(9^(n+1) - 3^(n+1)); \\ Joerg Arndt, Feb 23 2014
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|