login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A276940
a(1) = 2; for n > 1, a(n) = (n-2)! * n^3.
3
2, 8, 27, 128, 750, 5184, 41160, 368640, 3674160, 40320000, 482993280, 6270566400, 87697209600, 1314380390400, 21016195200000, 357082280755200, 6424604169984000, 122021710626816000, 2439660069310464000, 51218989645824000000, 1126555274886193152000, 25905540583064862720000, 621623493403188756480000, 15538186060797648568320000
OFFSET
1,1
COMMENTS
In factorial base representation (A007623) the terms are written as: 10, 110, 1011, 10110, 101100, 1011000, 10110000, ... From a(3) = 27 = "1011" onward each term begins always with "1011", followed by n-3 zeros. - Antti Karttunen, Sep 24 2016
FORMULA
a(1) = 2; for n > 1, a(n) = (n-2)! * n^3.
a(n) = n * A054119(n).
For n >= 3, a(n) = (n+1)! + (n-1)! + (n-2)!.
MATHEMATICA
Join[{2}, Table[(n-2)! n^3, {n, 2, 30}]] (* Harvey P. Dale, Apr 14 2017 *)
PROG
(Scheme, two alternatives)
(define (A276940 n) (if (= 1 n) 2 (* n n n (A000142 (- n 2)))))
(define (A276940 n) (cond ((= 1 n) 2) ((= 2 n) 8) (else (+ (A000142 (+ 1 n)) (A000142 (- n 1)) (A000142 (- n 2))))))
CROSSREFS
Row 20 of A276955 (from a(3) = 27 onward).
Sequence in context: A150711 A150712 A150713 * A287204 A299640 A197932
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Sep 24 2016
STATUS
approved