OFFSET
0,3
EXAMPLE
a(69) = gcd(69,9) = 3.
MATHEMATICA
Table[GCD[n, Mod[n, 10]], {n, 0, 100}] (* T. D. Noe, Jul 24 2012 *)
PROG
(Java)
import java.math.BigInteger;
public class A214587 {
public static void main (String[] args) {
for (long n=0; n<222; n++) {
BigInteger bn=BigInteger.valueOf(n), ld=BigInteger.valueOf(n%10);
System.out.printf("%s, ", bn.gcd(ld).toString());
}
}
}
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Jul 22 2012
STATUS
approved