I have a digit number in mind, you can obtain the digits of the number from left to right by following the five points below.
The smallest positive integer which has square root of the sum of all its quadratic residues equal to of the integer itself, gives first digits of my number.
If people are sitting around a table, everyone given numbers to clockwise (counting starts from number ) and then every person is asked to get out. The only remaining person's number gives next digits of my number. In other words, find .
The largest positive integer which has, out of all positive integers less than itself, exactly coprime to itself, gives next digits of my number. In other words, find the seventh largest such that
The only prime number which has exactly quadratic residues gives next digits of my number
The last digit of my number is
What is my number?
Details and assumptions :
This problem May seem boring because it's long, but will feel awesome after solving. Everything in this problem has a meaning, nothing is a troll.
Quadratic residues of a number are the possible remainders when square of any integer is divided by .
For example, any square integer can give remainder only from when divided by , so has six quadratic residues and their sum is
Here are links, if you want clarification regarding concepts used in the problem.
Concept of many problems in one, adapted from Pi Han Goh's Buzzkill
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.
Here are python programs for things i used in this problem-
Josephus problem (Returns a number)
Euler's Totient Function , or phi ϕ (Returns a number)
Quadratic Residues (Returns list of quadratic residues)
Prime numbers (Returns list of prime numbers till 'a')
As asked in the problem, here's point by point solution of the 5 bullet point conditions.
Hence needed number is 9 9
Hence next 3 digits are 2 2 7
Hence 7th largest number with phi(n)=60 is 9 3
Hence the next 2 digits are 5 3 . Last digit is 0, given.
Hence the 10-digit number is 9 9 2 2 7 9 3 5 3 0