OFFSET
1,1
COMMENTS
Sequence is finite by definition. Last two numbers are naturally 8 times less than 9!, the total number of 3 X 3 squares (not taking into account symmetries).
FORMULA
a(n) = 1/8*([9]_n+4*[3]_n+3*[1]_n) = 3/8*(967680-1145424*n+705596*n^2-256796*n^3+59649*n^4-8936*n^5+834*n^6-44*n^7+n^8)/GAMMA(10-n), where [m]_n=m*(m-1)*...*(m-n+1) is falling factorial. - Vladeta Jovovic, Aug 10 2003
EXAMPLE
a(1)=3 because there are 3 distinct (corner, side or central ) cells which can be occupied by 1 digit
CROSSREFS
KEYWORD
easy,nonn,fini,full
AUTHOR
Zak Seidov, Aug 08 2003
STATUS
approved
