login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065583 Sum of numbers which in base n have (n-1) distinct nonzero digits. 1
0, 1, 12, 252, 9360, 559800, 49412160, 6039794880, 976299609600, 201599999798400, 51766949513664000, 16177372653293913600, 6044902527410562816000, 2661334524326601925401600, 1363387181797265578297344000, 804077813274862776803112960000, 540880443323184957954046525440000 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = n!*(n^(n-1)-1)/(2*(n-1)) = A001710(n)*A060072(n).
EXAMPLE
a(4) = 252 since we need to sum the base 4 numbers 123, 132, 213, 231, 312 and 321, i.e. the decimal sum 27+30+39+45+54+57 = 252.
MATHEMATICA
Table[If[n==1, 0, n!*(n^(n-1) -1)/(2*(n-1))], {n, 30}] (* G. C. Greubel, Aug 16 2022 *)
PROG
(Magma) [n eq 1 select 0 else Factorial(n)*(n^(n-1)-1)/(2*(n-1)): n in [1..30]]; // G. C. Greubel, Aug 16 2022
(SageMath) [0]+[factorial(n)*(n^(n-1)-1)/(2*(n-1)) for n in (2..30)] # G. C. Greubel, Aug 16 2022
CROSSREFS
Sequence in context: A289565 A198475 A035013 * A129585 A034672 A133285
KEYWORD
base,nonn
AUTHOR
Henry Bottomley, Nov 28 2001
EXTENSIONS
More terms from Benoit Cloitre, Jan 31 2002
More terms from G. C. Greubel, Aug 16 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 21 15:15 EDT 2024. Contains 375353 sequences. (Running on oeis4.)