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-3 of 3 results.

A282062 Expansion of (x + Sum_{p prime, k>=1} x^(p^k))^2.

Original entry on oeis.org

0, 0, 1, 2, 3, 4, 5, 4, 5, 6, 7, 6, 8, 6, 7, 6, 7, 6, 9, 6, 10, 8, 7, 4, 10, 6, 9, 8, 10, 6, 12, 6, 13, 10, 13, 8, 14, 4, 11, 8, 12, 6, 12, 6, 12, 10, 11, 4, 16, 6, 15, 8, 12, 4, 17, 6, 14, 8, 11, 4, 16, 6, 13, 8, 13, 6, 18, 4, 16, 10, 14, 4, 20, 6, 15, 12, 14, 6, 18, 4, 18, 8, 13, 8, 22, 6, 17, 8, 14, 6, 24, 8, 16, 6, 13, 4
Offset: 0

Views

Author

Ilya Gutkovskiy, Feb 05 2017

Keywords

Comments

Number of ways to write n as an ordered sum of two prime powers (1 included).

Examples

			a(8) = 5 because we have  [7, 1], [5, 3], [4, 4], [3, 5] and [1, 7].
		

Crossrefs

Programs

  • Maple
    N:= 100: # to get a(0)..a(N)
    P:= select(isprime, [$2..N]):
    g:= x + add(add(x^(p^k),k=1..floor(log[p](N))),p=P):
    S:= series(g^2,x,N+1):
    seq(coeff(S,x,n),n=0..N); # Robert Israel, Feb 10 2017
  • Mathematica
    nmax = 95; CoefficientList[Series[(x + Sum[Floor[1/PrimeNu[k]] x^k, {k, 2, nmax}])^2, {x, 0, nmax}], x]

Formula

G.f.: (x + Sum_{p prime, k>=1} x^(p^k))^2.

A307726 Number of partitions of n into 2 prime powers (not including 1).

Original entry on oeis.org

0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 2, 4, 3, 4, 4, 4, 2, 4, 3, 4, 4, 4, 3, 5, 3, 6, 4, 7, 4, 7, 2, 5, 4, 6, 3, 5, 3, 5, 5, 6, 2, 7, 3, 7, 4, 6, 2, 8, 3, 7, 4, 6, 2, 7, 3, 6, 4, 7, 2, 9, 2, 7, 5, 7, 2, 9, 3, 7, 6, 7, 3, 9, 2, 8, 4, 6, 4, 10, 3, 9, 4, 7, 3, 11, 4, 8, 3, 7, 2, 10, 2, 8, 3, 8
Offset: 0

Views

Author

Ilya Gutkovskiy, Apr 24 2019

Keywords

Examples

			a(10) = 3 because we have [8, 2], [7, 3] and [5, 5].
		

Crossrefs

Programs

  • Maple
    # note that this requires A246655 to be pre-computed
    f:= proc(n, k, pmax) option remember;
      local t, p, j;
      if n = 0 then return `if`(k=0, 1, 0) fi;
      if k = 0 then return 0 fi;
      if n > k*pmax then return 0 fi;
      t:= 0:
      for p in A246655 do
        if p > pmax then return t fi;
        t:= t + add(procname(n-j*p, k-j, min(p-1, n-j*p)), j=1..min(k, floor(n/p)))
      od;
      t
    end proc:
    map(f, [$0..100]); # Robert Israel, Apr 29 2019
  • Mathematica
    Array[Count[IntegerPartitions[#, {2}], _?(AllTrue[#, PrimePowerQ] &)] &, 101, 0]

Formula

a(n) = [x^n y^2] Product_{k>=1} 1/(1 - y*x^A246655(k)).

A282289 Expansion of (Sum_{p prime, k>=2} x^(p^k))^4.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 4, 4, 0, 0, 6, 12, 6, 0, 8, 12, 12, 4, 13, 16, 6, 4, 13, 28, 12, 4, 10, 24, 24, 16, 28, 24, 24, 24, 42, 52, 18, 28, 32, 60, 40, 24, 44, 28, 42, 28, 60, 52, 18, 24, 37, 84, 54, 48, 42, 60, 78, 48, 72, 44, 60, 52, 68, 96, 36, 40, 22, 72, 72, 52, 76, 52, 66, 36, 88, 88, 64, 56
Offset: 0

Views

Author

Ilya Gutkovskiy, Feb 11 2017

Keywords

Comments

Number of ways to write n as an ordered sum of 4 proper prime powers (A246547).
Conjecture: a(n) > 0 for all n > 27.

Examples

			a(28) = 8 because we have [16, 4, 4, 4], [8, 8, 8, 4], [8, 8, 4, 8], [8, 4, 8, 8], [4, 16, 4, 4], [4, 8, 8, 8], [4, 4, 16, 4] and [4, 4, 4, 16].
		

Crossrefs

Programs

  • Mathematica
    nmax = 91; CoefficientList[Series[Sum[Sign[PrimeOmega[k] - 1] Floor[1/PrimeNu[k]] x^k, {k, 2, nmax}]^4, {x, 0, nmax}], x]

Formula

G.f.: (Sum_{p prime, k>=2} x^(p^k))^4.
Showing 1-3 of 3 results.