Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A099358
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A099358 a(n) = sum of digits of k^4 as k runs from 1 to n. +0
1
1, 8, 17, 30, 43, 61, 68, 87, 105, 106, 122, 140, 162, 184, 202, 227, 246, 273, 283, 290, 317, 339, 370, 397, 422, 459, 477, 505, 530, 539, 561, 592, 619, 644, 663, 699, 727, 752, 770, 783, 814, 841, 866, 903, 921, 958, 1001, 1028, 1059, 1072, 1099, 1124, 1161 (list; graph; listen)
OFFSET

1,2

FORMULA

a(n) = a(n-1) + sum of decimal digits of n^4.

a(n)=sum(k=1, n, sum(m=0, floor(log(k^4)), floor(10((k^4)/(10^(((floor(log(k^4))+1))-m)) - floor ((k^4)/(10^(((floor(log(k^4))+1))-m)))))))

General formula: a(n)_p = sum(k=1, n, sum(m=0, floor(log(k^p)), floor(10((k^p)/(10^(((floor(log(k^p))+1))-m)) - floor ((k^p)/(10^(((floor(log(k^p))+1))-m))))))). Here a(n)_p is a sum of digits of k^p from k=1 to n

EXAMPLE

a(600)=sum(k=1,600,sum(m=0,floor(log(k^4)),floor(10*((k^4)/(10^(((floor(log(k^4))+1))-m)) - floor ((k^4)/(10^(((floor(log(k^4))+1))-m)))))))=23812 => a(600)=23812 = a(600)_4 because p=4

MATHEMATICA

f[n_] := Block[{s = 0, k = 1}, While[k <= n, s = s + Plus @@ IntegerDigits[k^4]; k++ ]; s]; Table[ f[n], {n, 50}] (from Robert G. Wilson v Nov 18 2004)

CROSSREFS

Cf. k^1 in A037123, k^2 in A071317 & k^3 in A071121.

Adjacent sequences: A099355 A099356 A099357 this_sequence A099359 A099360 A099361

Sequence in context: A044441 A056121 A028884 this_sequence A077222 A077221 A106648

KEYWORD

nonn,easy,base

AUTHOR

Aktir Yalcin (aktaryalcin(AT)msn.com), Nov 16 2004

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 18 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 8 20:39 EST 2009. Contains 166234 sequences.


AT&T Labs Research