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!)
A135104 Digital sum (base the n-th prime) of n^4. 1
1, 4, 5, 10, 15, 24, 17, 28, 27, 60, 31, 36, 81, 70, 71, 68, 117, 96, 37, 120, 81, 100, 139, 192, 97, 176, 123, 174, 205, 128, 193, 126, 137, 220, 201, 216, 133, 196, 397, 296, 189, 396, 321, 256, 305, 280, 331, 396, 445, 292, 313, 256, 481, 556, 417, 326, 553, 256 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = ds_prime(n)(n^4), where ds_prime(n) = digital sum base the n-th prime.
a(n) = n^4 - (prime(n)-1)*Sum{k>0} ( floor(n^4/prime(n)^k) ).
EXAMPLE
a(2) = ds_prime(2)(2^4) = ds_3(16) = 1+2+1 = 4;
a(6) = ds_prime(6)(6^4) = ds_13(1296) = 7+8+9 = 24.
MATHEMATICA
Table[Total[IntegerDigits[n^4, Prime[n]]], {n, 50}] (* G. C. Greubel, Sep 23 2016 *)
PROG
(PARI) a(n) = vecsum(digits(n^4, prime(n))); \\ Michel Marcus, Sep 24 2016
CROSSREFS
Sequence in context: A101528 A119040 A287578 * A131780 A354968 A102006
KEYWORD
nonn,base
AUTHOR
Hieronymus Fischer, Dec 24 2007
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 April 19 03:16 EDT 2024. Contains 371782 sequences. (Running on oeis4.)