2015 Countdown Problem #16: Some Brute Force & Luck Needed – Part I

A sequence is defined by the recurrence relation u 1 = 2015 u_1=2015 and u n u_n equals the sum of the squares of each digit in u ( n 1 ) u_{(n-1)} for n 2 n≥2 .

How many more square numbers than prime numbers are there between u 1 u_1 and u 2015 u_{2015} inclusive?

#GoodLuckHaveFun

This problem is part of the set 2015 Countdown Problems .


The answer is 0.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Josh Banister
Dec 21, 2014

The sequence is 2015, 30, 9, 81, 65, 61, (37, 58, 89, 145, 42, 20, 4, 16) and loops back to 37. The first part (unlooped) of the sequence has 2 squares and 1 prime and the looped portion has 2 square and 2 primes. By repeating that loop, the 2015th number in the sequence is 37 (which is a prime). Without calculation, There is one more square than prime in the unlooped portion, no changes after the completed loops and one more prime than square in the unfinished loop leaving a total of zero.

You have assumed by finding a pattern that the loop continues till 2015. Is there any much better solid proof ?

Venkata Karthik Bandaru - 6 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...