A276835 Numerator of a modified exponentiated von Mangoldt function defined recursively.
1, 2, 3, 2, 5, 1, 7, 1, 3, 1, 11, 1, 13, 1, 1, 6, 17, 3, 19, 4, 1, 3, 23, 90, 5, 5, 3, 3, 29, 12, 31, 112, 3, 105, 1, 50, 37, 5, 1, 27, 41, 81, 43, 10, 1, 105, 47, 539, 7, 77, 15, 4, 265, 2, 3, 520, 3, 351, 59, 945
Offset: 1
Examples
The ratio A276835/A276836 starts: 1, 2, 3, 2, 5, 1/2, 7, 1/3, 3, 1/4, 11/3, 1/5, 13,... The greater twin primes A006512 start: 5,7,13,... where the ratio is equal to n.
Links
- Robert G. Wilson v, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Clear[t, x]; (*setting x=1 gives ratio equal to n when n is the greater of the twin primes, x=2 gives ratio equal to n when n is the greater of the cousin primes and so on.*) x = 1; nn = 60; t[1, 1] = 1; t[n_, k_] := t[n, k] = If[k == 1, n/Product[t[n - 2*x, k + i], {i, 1, n - 2*x}]/Product[t[n, k + i], {i, 1, n - 1}], If[Mod[n, k] == 0, t[n/k, 1], 1], 1]; Monitor[a = Table[t[n, 1], {n, 1, nn}];, n]; Numerator[a] (* Mats Granvik, Sep 20 2016, Sep 29 2016 *)
Formula
From Mats Granvik, Sep 20 2016, Sep 29 2016: (Start)
Let:
x = 1;
T(1, 1) = 1;
T(n, k) = If k = 1 then n/Product_{i=1..n-2*x}(T(n-2*x, k + i))/Product_{i=1..n-1}(T(n, k + i)) else if Mod(n, k) = 0 then T(n/k, 1) else 1 else 1.
Comments