A269781 a(n) is the smallest k different from n such that (n, k) is an amicably refactorable pair (see the comments).
4, 3, 16, 4, 64, 24, 36, 16, 1024, 6, 4096, 64, 4, 5, 65536, 12, 262144, 6, 4, 1024, 4194304, 8, 81, 4096, 4, 6, 268435456, 16, 1073741824, 6, 4, 65536, 16, 9, 68719476736, 262144, 4, 8, 1099511627776, 32, 4398046511104, 6, 36, 4194304, 70368744177664, 10, 729, 48, 4, 6, 4503599627370496, 32, 16, 8
Offset: 3
Keywords
Examples
For n=5, a(5)=16 as the number of divisors of n (2) divides a(n) while the number of divisors of a(n) (5) divides 5 and 16 is the smallest number for which this happens.
Crossrefs
Programs
-
Mathematica
A269781 = {}; Do[k = 1; If[PrimeQ[n] || PrimeNu[n] == 2 && PrimeOmega[n] == 2, AppendTo[A269781, 2^(First[Last[FactorInteger[n]]] - 1)], If[PrimeQ @ Sqrt @ n && (n > 9), AppendTo[A269781, 3^(Sqrt[n] - 1)],While[k != n && !(Divisible[n, DivisorSigma[0, k]] && Divisible[k, DivisorSigma[0, n]]), k++]; If[k == n, k = n + 1; While[!(Divisible[n, DivisorSigma[0, k]] && Divisible[k, DivisorSigma[0, n]]), k++]]; AppendTo[A269781, k]]], {n, 3, 56}]; A269781
Comments