A336697 a(n) = gcd((s+1)/2, 1+sigma(s)), where s is the n-th odd square, (2n-1)^2.
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 1..16396
- Antti Karttunen, Data supplement: n, a(n) computed for n = 1..65537
- Index entries for sequences related to sigma(n)
Programs
-
Mathematica
Array[GCD[(# + 1)/2, 1 + DivisorSigma[1, #]] &[(2 # - 1)^2] &, 120] (* Michael De Vlieger, Aug 24 2020 *)
-
PARI
A336697(n) = { my(s=((n+n-1)^2)); gcd((s+1)/2,1+sigma(s)); };
Comments