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 | |
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.