Quote (allthelivelongday @ Feb 27 2014 04:07pm)
Why would k = 5 return at least 4?
Because 4(4+5) is 36, a perfect square.
There should be a few like that I guess.
I figured out what I was doing wrong, but now I need to find a way to pull out the numerical values for the trues and falses.
Code
perfectSquares[k_] := Map[IntegerQ, Sqrt[Range[10] (Range[10] + k)]]
test = perfectSquares[5]
{False, False, False, True, False, False, False, False, False, False}
How could I extract from that the number that translates to the true value?
This post was edited by furbyjs on Feb 27 2014 03:17pm