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

A280634 Number of partitions of 2n into two refactorable parts.

Original entry on oeis.org

1, 1, 0, 0, 2, 0, 1, 1, 1, 2, 0, 1, 2, 0, 1, 1, 0, 2, 1, 0, 2, 1, 0, 3, 0, 1, 1, 0, 2, 1, 1, 2, 0, 2, 0, 2, 2, 1, 1, 3, 1, 2, 1, 1, 2, 3, 0, 5, 2, 2, 1, 2, 2, 3, 1, 4, 1, 4, 0, 5, 1, 2, 1, 3, 1, 3, 1, 3, 1, 5, 0, 7, 1, 3, 1, 3, 2, 3, 1, 5, 0, 6, 0, 7, 1, 3, 1, 5, 0, 3
Offset: 1

Views

Author

Wesley Ivan Hurt, Jan 06 2017

Keywords

Examples

			a(5) = 2; There are two partitions of 2*5 = 10 into two refactorable parts: (1,9) and (2,8).
		

Crossrefs

Programs

  • Maple
    with(numtheory): A280634:=n->add((1-signum((i mod tau(i))))*(1-signum((2*n-i) mod tau(2*n-i))), i=1..n): seq(A280634(n), n=1..150);
  • Mathematica
    Table[Sum[(1 - Sign[Mod[i, DivisorSigma[0, i]]]) (1 - Sign[Mod[#, DivisorSigma[0, #]]] &[2 n - i]), {i, n}], {n, 90}] (* Michael De Vlieger, Jan 07 2017 *)

Formula

a(n) = Sum_{i=1..n} (1-sign(i mod d(i))) * (1-sign((2n-i) mod d(2n-i))) where d(n) is the number of divisors of n.

A337853 a(n) is the number of partitions of n as the sum of two Niven numbers.

Original entry on oeis.org

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

Views

Author

Marius A. Burtea, Sep 26 2020

Keywords

Comments

a(n) >= 1 for n >= 2 ?.
For n <= 200000, a(n) = 1 only for n = 2, 3, 299, (2 = 1 + 1, 3 = 1 + 2, 299 = 1 + 288) and a(n) = 2 only for n in {4, 5, 35, 59, 79, 95, 97, 149, 169, 179, 389}.

Examples

			0 and 1 cannot be decomposed as the sum of two Niven numbers, so a(0) = a(1) = 0.
4 = 1 + 3 = 2 + 2 and 1, 2, 3 are in A005349, so a(4) = 2.
15 = 3 + 12 = 5 + 10 = 6 + 9 = 7 + 8 and 3, 5, 6, 7, 8, 9, 10, 12 are in A005349, so a(15) = 4.
		

Crossrefs

Programs

  • Magma
    niven:=func; [#RestrictedPartitions(n,2,{k: k in [1..n-1] | niven(k)}): n in [0..100]];
  • Mathematica
    m = 100; nivens = Select[Range[m], Divisible[#, Plus @@ IntegerDigits[#]] &]; a[n_] := Length[IntegerPartitions[n, {2}, nivens]]; Array[a, m, 0] (* Amiram Eldar, Sep 27 2020 *)

A281663 Refactorable numbers that are not the sum of two refactorable numbers.

Original entry on oeis.org

1, 8, 12, 40, 56, 225, 441
Offset: 1

Views

Author

Altug Alkan, Jan 26 2017

Keywords

Comments

Is this sequence finite?

Examples

			40 is a term because 40 is a refactorable number and there is no partition of 40 into two refactorable parts.
		

Crossrefs

Programs

  • PARI
    isrefac(n) = (n%numdiv(n))==0;
    isok(n) = isrefac(n) && (sum(k=1, n\2, isrefac(k) && isrefac(n-k)) == 0); \\ Michel Marcus, Jan 26 2017

A282519 Refactorable numbers that are the sum of two refactorable numbers in exactly one way.

Original entry on oeis.org

2, 9, 18, 24, 60, 88, 625, 1089, 2601, 1500625
Offset: 1

Views

Author

Altug Alkan, Feb 17 2017

Keywords

Comments

Sequence is a result of investigation on the marked region in graph of A172398(A033950(n)) that is in Links section. Also there are other sequences that marked region has.

Examples

			Refactorable number 1500625 is a term because 1500625 is the sum of two refactorable numbers in exactly one way, that is, 1500625 = 5^4 * 7^4 = 3^2 * 131^2 + 2^7 * 13 * 809.
		

Crossrefs

Extensions

a(10) from Giovanni Resta, Feb 17 2017
Showing 1-4 of 4 results.