# Problem: A multiple of 7 (Sample Programs)

What is the smallest number that divided by 2,3,4,5,6, gives a remainder of 1, and it is exactly divisible by 7.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

cls

for j = 1 to 1000

l = 0

for k = 2 to 6

if j % k = 1 then l = l + 1

if l = 5 and j % 7 = 0 then

print "Number = "+j

goto zzz

end if

next k

next j

zzz:

end

:::::::::::::::::::::::::::::::::::::::::::

Number = 301

**Complete thread:**

- Problem: A multiple of 7 -
**lrcvs**, 2013-05-05, 18:48- Problem: A multiple of 7 -
**Jim**, 2013-05-05, 21:23- Problem: A multiple of 7 -
**lrcvs**, 2013-05-05, 22:09

- Problem: A multiple of 7 -

- Problem: A multiple of 7 -