Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Divisibility

For 7|7aaa, I use: sage:print[a for a in [0..9] if (7000+111*a)%7==0] [0, 7] I do not know how to write for 7|7abc. Thanks.

Divisibility

For 7|7aaa, I use: use:

sage:print[a for a in [0..9] if (7000+111*a)%7==0]
[0, 7]

I do not know how to write for 7|7abc. Thanks.

Divisibility

For 7|7aaa, To find numbers of the form 7aaa that are multiples of 7, I use:

sage:print[a sage:print [a for a in [0..9] if (7000+111*a)%7==0]
[0, 7]

I do not know how to write for 7|7abc. 7|7abc.

Thanks.