OFFSET
1,6
COMMENTS
Also the GCD of the "binary n-th powers", the set of positive integers whose base-2 representation consists of a block of bits repeated n times consecutively. - Jeffrey Shallit, Jan 16 2018
prime(k) for k >= 2 divides a(n) if and only if n is divisible by prime(k)*A014664(k). - Robert Israel, Jan 16 2018
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
Daniel M. Kane, Carlo Sanna, and Jeffrey Shallit, Waring's theorem for binary powers, arXiv:1801.04483 [math.NT], Jan 13 2018.
MAPLE
MATHEMATICA
Table[GCD[n, 2^n-1], {n, 100}] (* Harvey P. Dale, Mar 14 2013 *)
PROG
(PARI) a(n) = gcd(n, -1 + 1 << n); \\ Amiram Eldar, Nov 21 2024
CROSSREFS
KEYWORD
nonn,easy,nice
AUTHOR
Gary M. Mcguire (gmm8n(AT)weyl.math.virginia.edu)
STATUS
approved
