OFFSET
0,3
COMMENTS
In factorial base representation (A007623) the terms of this sequence look as: 1, 1, 11, 101, 1010, 10100, 101000, ... From a(3)=7 onward each term begins always with "101", which is then followed by n-3 zeros. - Antti Karttunen, Sep 23 2016
LINKS
FORMULA
For n >= 2, a(n) = A002061(n) * (n-2)! - Antti Karttunen, Sep 23 2016
E.g.f.: x + (1-x)*log(1-x) + 1/(1-x). - Andrew Howroyd, May 09 2021
EXAMPLE
a(6) = 6!+4! = 720+24 = 744.
MAPLE
a:= n-> `if`(n<2, 1, n!+(n-2)!):
seq(a(n), n=0..30);
MATHEMATICA
Table[If[n<2, 1, n!+(n-2)!], {n, 0, 30}] (* Vladimir Joseph Stephan Orlovsky, May 19 2011 *)
Join[{1, 1}, #[[1]]+#[[3]]&/@Partition[Range[0, 20]!, 3, 1]] (* Harvey P. Dale, Nov 19 2015 *)
PROG
(Scheme) (define (A108217 n) (if (<= n 1) 1 (* (A002061 n) (A000142 (- n 2))))) ;; Antti Karttunen, Sep 23 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Miklos Kristof, following a suggestion from Peter Boros, (borospet(AT)freemail.hu), Jun 16 2005
EXTENSIONS
Corrected by Georg Fischer, May 09 2021
STATUS
approved