The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A354861 Base-n digit sum of A002034(n)!. 2

%I #12 Jun 11 2022 14:06:33

%S 1,2,3,8,1,12,3,16,3,30,2,48,22,8,15,80,6,126,6,20,63,198,1,24,50,50,

%T 18,364,4,360,20,64,165,8,20,432,182,92,3,520,38,504,72,16,225,690,15,

%U 96,56,250,105,988,42,108,35,280,399,1334,2,1500,524,18,63,128,105,1650,227,340,3,2030,10,2160,853,62

%N Base-n digit sum of A002034(n)!.

%o (PARI) \\ define the function a002034(n) as in A002034

%o a354861(n) = sumdigits(a002034(n)!, n); \\ _Felix Fröhlich_, Jun 09 2022

%o (Python) # uses A002034(n)

%o from math import factorial

%o from sympy.ntheory.digits import digits

%o def a(n): return sum(digits(factorial(A002034(n)), n)[1:])

%o print([a(n) for n in range(2, 76)]) # _Michael S. Branicky_, Jun 09 2022

%Y Cf. A000142, A002034, A354854.

%K base,nonn

%O 2,2

%A _Max Alekseyev_, Jun 09 2022

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 June 3 07:50 EDT 2024. Contains 373054 sequences. (Running on oeis4.)