|
|
A103161
|
|
GCD of reverse(2^n) and reverse(2^(n+1)), where reverse(k) = A004086(k), the decimal representation of k read backwards.
|
|
1
|
|
|
2, 4, 1, 1, 23, 1, 1, 1, 1, 4201, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 7, 1, 1, 1, 1, 4, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 19, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 34, 1, 1, 1, 7, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
n=10: GCD of backward written powers of 2 is GCD(4201, 8402) = 4201 = a(10).
|
|
MATHEMATICA
|
rd[x_] :=FromDigits[Reverse[IntegerDigits[x]]] Table[GCD[rd[2^w], rd[2^(w+1)]], {w, 1, 100}]
GCD[IntegerReverse[#[[1]]], IntegerReverse[#[[2]]]]&/@ Partition[ 2^Range[110], 2, 1] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 24 2017 *)
|
|
PROG
|
(PARI)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|