cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-6 of 6 results.

A061152 Expansion of Product_{n>=1} (1+x^n)^prime(n).

Original entry on oeis.org

1, 2, 4, 11, 23, 51, 107, 216, 430, 839, 1614, 3046, 5684, 10465, 19046, 34321, 61225, 108245, 189779, 330093, 569916, 977139, 1664304, 2817039, 4740000, 7930740, 13198108, 21851556, 36001483, 59035979, 96373100, 156644241, 253550911
Offset: 0

Views

Author

Vladeta Jovovic, Apr 16 2001

Keywords

Crossrefs

Formula

a(n) = (1/n) * Sum_{k=1..n} a(n-k)*b(k), k>0, a(0)=1, b(k)=Sum_{d|k} (-1)^(k/d+1)*d*prime(d).

A007441 1 + Sum_{n>=1} a_n x^n = Product_{n>=1} (1-x^n)^prime(n).

Original entry on oeis.org

1, -2, -2, 1, 3, 7, 5, 6, -10, -27, -50, -42, -30, 41, 148, 241, 345, 303, 167, -275, -858, -1685, -2342, -2813, -2316, -536, 2914, 8228, 14531, 20955, 24370, 22393, 10265, -13839, -53386, -104364, -161593, -209463, -228141, -188750, -62023, 177547, 541310, 1009998, 1527972, 1976120, 2189974
Offset: 0

Views

Author

Keywords

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Formula

a(n) = (1/n)*Sum_{k=1..n} a(n-k)*b(k), k>0, a(0)=1, b(k)=-Sum_{d|k} d*prime(d), cf. A061150.

Extensions

Better description from Vladeta Jovovic, Apr 16 2001

A061150 a(n) = Sum_{d|n} d*prime(d).

Original entry on oeis.org

2, 8, 17, 36, 57, 101, 121, 188, 224, 353, 343, 573, 535, 729, 777, 1036, 1005, 1406, 1275, 1801, 1669, 2087, 1911, 2861, 2482, 3167, 3005, 3753, 3163, 4541, 3939, 5228, 4879, 5737, 5391, 7314, 5811, 7475, 7063, 8873, 7341, 9957, 8215, 10607, 9849
Offset: 1

Views

Author

Vladeta Jovovic, Apr 16 2001

Keywords

Examples

			a(4)=36 because the divisors of 4 are 1,2,4 and 1*p(1) + 2*p(2) + 4*p(4) = 1*2 + 2*3 + 4*7 = 36.
		

Crossrefs

Programs

  • Maple
    with(numtheory): a:=proc(n) local div: div:=divisors(n): sum(div[j]*ithprime(div[j]),j=1..tau(n)) end: seq(a(n),n=1..55); # Emeric Deutsch, Jan 20 2007
  • PARI
    a(n) = sumdiv(n, d, d*prime(d)); \\ Michel Marcus, Jun 24 2018

Formula

Equals M * V, where M = A127093 as an infinite lower triangular matrix and V = A000040, the sequence of primes as a vector. E.g., a(4) = 36 = 1*2 + 2*3 + 4*7, where (1, 2, 0, 4) = row 4 of A127093 and 2, 3 and 7 are p(1), p(2), p(4). - Gary W. Adamson, Jan 11 2007
L.g.f.: log(Product_{k>=1} 1/(1 - x^k)^prime(k)) = Sum_{n>=1} a(n)*x^n/n. - Ilya Gutkovskiy, May 10 2017

Extensions

Edited by N. J. A. Sloane, May 04 2007

A291647 Expansion of Product_{k>=1} (1 + x^prime(k))^prime(k).

Original entry on oeis.org

1, 0, 2, 3, 1, 11, 3, 20, 21, 20, 64, 35, 112, 117, 160, 269, 284, 477, 598, 819, 1116, 1495, 1899, 2718, 3389, 4596, 6121, 7627, 10460, 13128, 17350, 22506, 28696, 37063, 47779, 60249, 78642, 98783, 126058, 160758, 200795, 257750, 321768, 407930, 511526, 640636, 802816, 1005618, 1252820, 1567454, 1946162
Offset: 0

Views

Author

Ilya Gutkovskiy, Aug 28 2017

Keywords

Comments

Number of partitions of n into distinct prime parts, where prime(k) different parts of size prime(k) are available (2a, 2b, 3a, 3b, 3c, ...).

Examples

			a(6) = 3 because we have [3a, 3b], [3a, 3c] and [3b, 3c].
		

Crossrefs

Programs

  • Mathematica
    nmax = 50; CoefficientList[Series[Product[(1 + x^Prime[k])^Prime[k], {k, 1, nmax}], {x, 0, nmax}], x]

Formula

G.f.: Product_{k>=1} (1 + x^A000040(k))^A000040(k).

A305881 Expansion of Product_{k>=1} 1/(1 + prime(k)*x^k).

Original entry on oeis.org

1, -2, 1, -7, 16, -28, 62, -118, 303, -630, 1152, -2426, 5315, -10718, 20482, -43449, 91111, -179254, 358910, -727829, 1484601, -2995681, 5924606, -11935441, 24382120, -48702245, 96682698, -195063604, 392983826, -784903199, 1569490057, -3146479152, 6317124649, -12652202092
Offset: 0

Views

Author

Ilya Gutkovskiy, Jun 13 2018

Keywords

Comments

Convolution inverse of A147655.

Crossrefs

Programs

  • Maple
    b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
          b(n, i-1) +`if`(i>n, 0, b(n-i, i-1)*ithprime(i))))
        end:
    a:= proc(n) option remember; `if`(n=0, 1,
          -add(b(n-i$2)*a(i$2), i=0..n-1))
        end:
    seq(a(n), n=0..40);  # Alois P. Heinz, Jun 13 2018
  • Mathematica
    nmax = 33; CoefficientList[Series[Product[1/(1 + Prime[k] x^k), {k, 1, nmax}], {x, 0, nmax}], x]
    nmax = 33; CoefficientList[Series[Exp[Sum[Sum[(-1)^k Prime[j]^k x^(j k)/k, {j, 1, nmax}], {k, 1, nmax}]], {x, 0, nmax}], x]
    a[n_] := a[n] = If[n == 0, 1, Sum[Sum[d (-Prime[d])^(k/d), {d, Divisors[k]}] a[n - k], {k, 1, n}]/n]; Table[a[n], {n, 0, 33}]

Formula

G.f.: exp(Sum_{k>=1} Sum_{j>=1} (-1)^k*prime(j)^k*x^(j*k)/k).

A318367 a(n) = Sum_{d|n} (-1)^(n/d+1)*d*prime(d).

Original entry on oeis.org

2, 4, 17, 20, 57, 67, 121, 116, 224, 239, 343, 371, 535, 487, 777, 660, 1005, 958, 1275, 1095, 1669, 1401, 1911, 1715, 2482, 2097, 3005, 2295, 3163, 2987, 3939, 3156, 4879, 3727, 5391, 4502, 5811, 4925, 7063, 5271, 7341, 6619, 8215, 6433, 9849, 7249, 9919, 8691, 11244, 9264
Offset: 1

Views

Author

Ilya Gutkovskiy, Aug 24 2018

Keywords

Crossrefs

Programs

  • Maple
    f:= proc(n) local d; add((-1)^(n/d+1)*d*ithprime(d), d = numtheory:-divisors(n)); end proc:map(f, [$1..100]); # Robert Israel, Aug 01 2023
  • Mathematica
    Table[Sum[(-1)^(n/d + 1) d Prime[d], {d, Divisors[n]}], {n, 50}]
    nmax = 50; Rest[CoefficientList[Series[Sum[k Prime[k] x^k/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x]]
    nmax = 50; Rest[CoefficientList[Series[Log[Product[(1 + x^k)^Prime[k], {k, 1, nmax}]], {x, 0, nmax}], x] Range[0, nmax]]
  • PARI
    a(n) = sumdiv(n, d, (-1)^(n/d+1)*d*prime(d)); \\ Michel Marcus, Aug 25 2018

Formula

G.f.: Sum_{k>=1} k*prime(k)*x^k/(1 + x^k).
L.g.f.: log(Product_{k>=1} (1 + x^k)^prime(k)) = Sum_{n>=1} a(n)*x^n/n.
Showing 1-6 of 6 results.