Page 1 of 1

Problem 749

Posted: Fri May 14, 2021 10:13 pm
by KeithGordon
I am testing my code with the solutions laid out in the Problem - namely that S(2) = 110 and S(6) = 2562701.
I am struggling because I get S(6) = 3575991. This is NOT the result of the question just my result for their given example. Am I off or is the sample? Here are the near power sums I get for S(6):

35
75
153
370
371
407
1634
4150
4151
8208
9474
54748
92727
93084
194979
528757
548834
629643
688722
715469

Thank you,

Keith

Re: Problem 749

Posted: Fri May 14, 2021 11:42 pm
by brob26
KeithGordon wrote: Fri May 14, 2021 10:13 pmAm I off or is the sample?
"A positive integer, $n$, is a near power sum if there exists a positive integer, $k$, such that the sum of the $k$th powers of the digits in its decimal representation is equal to either $n+1$ or $n-1$" (but not $n$ itself!)

Re: Problem 749

Posted: Sat May 15, 2021 4:19 am
by KeithGordon
LOL - thank you!!!