• Hey Guest. Check out your NeoGAF Wrapped 2025 results here!

a bit of math help needed

Status
Not open for further replies.

7imz

Member
consider the following

(i + j^2) mod m

where m is a prime number and j = 0,1,2...m

for each i we choose, m/2 numbers wouldn't appear in the result... for example

let's say we choose m = 5

i = 0... 1 4 4 1 0 <--- 2 and 3 didn't appear
i = 1... 2 1 0 2 1 <--- 3 and 4 didn't appear

i can't exactly determine the relationship... any help would be greatly appreciated.
 
Status
Not open for further replies.
Top Bottom