+0  
 
0
360
1
avatar

Find all positive integers n such that \(\displaystyle \left\lfloor \frac{n}{6} \right\rfloor = \left\lfloor \frac{n}{7} \right\rfloor\)

 

(The brackets refer to the floor function.)

 Jun 19, 2020
 #1
avatar
0

a=1;b=floor(a/6);c=floor(a/7) ; if(b==c, goto4, goto5);printa,b, c; a++;if(a<1000, goto1, 0)

n   n/6  n/7

1     0     0
2    0     0
3    0     0
4    0     0
5    0     0
7     1     1
8     1    1
9     1    1
10   1    1
11    1    1
14   2    2
15   2    2
16   2    2
17   2    2
21   3    3
22  3    3
23  3    3
28  4    4
29  4    4
35  5    5
 

 Jun 19, 2020

0 Online Users