+0  
 
0
616
1
avatar+537 

Let n be a positive integer. Let R be the remainder when \(n^2\) is divided by n+4. How many different values can R take on?

 Apr 12, 2020
 #1
avatar
0

a=1;c=(a^2%(a+4);printa, c; a++;if(a<100, goto1, 0)
OUTPUT:
n    R
1     1
2    4
3    2
4    0
5    7
6    6
7    5
8    4
9    3
10  2
11  1
12  0
13 16

 Apr 12, 2020

3 Online Users

avatar
avatar
avatar