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.
1 | initial version | asked 2014-10-18 17:32:22 +0100 Anonymous |
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.
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.