|
|
A136370
|
|
Numerator of 1 - Sum_{k=1..n} (-1)^(k+1)/prime(k)^2.
|
|
8
|
|
|
3, 31, 739, 37111, 4446331, 756766039, 217803584371, 78887714418031, 41637516941042299, 35066922176061410359, 33657455280704707522099, 46117280789485930425170431, 77468081652660425646977758411, 143331051198625503752852285686039
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
It seems that the denominator of 1 - Sum_{k=1..n} (-1)^(k+1)/prime(k)^2 is A061742(n), which is the square of the product of the first n primes, but this is not immediately obvious. - Petros Hadjicostas, May 14 2020
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
|
|
MATHEMATICA
|
Table[Numerator[1 - Sum[(-1)^(k+1)/Prime[k]^2, {k, 1, n}]], {n, 1, 20}]
|
|
PROG
|
(PARI) a(n) = numerator(1 - sum(k=1, n, (-1)^(k+1)/prime(k)^2)); \\ Michel Marcus, May 14 2020
(Python)
from sympy import prime
from fractions import Fraction
from itertools import accumulate, count, islice
def A136370gen(): yield from map(lambda x: (1-x).numerator, accumulate(Fraction((-1)**(k+1), prime(k)**2) for k in count(1)))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,frac
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|