Online Course Discussion Forum

MCIII Number Theory 3.18

 
 
JinTina的头像
MCIII Number Theory 3.18
JinTina - 2024年01月5日 Friday 15:30
 

Hello,

This is what I did for this problem:

Why does only k=0, 1, 2 work, but why?

Thanks,

Tina Jin

 
WangDr. Kevin的头像
Re: MCIII Number Theory 3.18
WangDr. Kevin - 2024年01月6日 Saturday 00:05
 

For each $m$ as the value of $\lfloor\sqrt{n}\rfloor$, $k=0,1,2$ represent the numbers $m^2$, $m^2+m$, and $m^2+2m$.  The next value, $m^2+3m$, is already greater than $(m+1)^2$, and if $n=m^2+3m$, $\lfloor\sqrt{n}\rfloor$ is greater than $m$, so it is no longer a solution for $\lfloor\sqrt{n}\rfloor = m$.

JinTina的头像
Re: MCIII Number Theory 3.18
JinTina - 2024年01月14日 Sunday 10:30
 

Oh! I get it, thank you!