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.

A382468 a(n) = (largest prime factor of n) minus (its remaining distinct prime factors).

Original entry on oeis.org

2, 3, 2, 5, 1, 7, 2, 3, 3, 11, 1, 13, 5, 2, 2, 17, 1, 19, 3, 4, 9, 23, 1, 5, 11, 3, 5, 29, 0, 31, 2, 8, 15, 2, 1, 37, 17, 10, 3, 41, 2, 43, 9, 2, 21, 47, 1, 7, 3, 14, 11, 53, 1, 6, 5, 16, 27, 59, 0, 61, 29, 4, 2, 8, 6, 67, 15, 20, 0, 71, 1, 73, 35, 2, 17, 4, 8, 79, 3, 3
Offset: 2

Views

Author

Paolo Xausa, Mar 31 2025

Keywords

Crossrefs

Cf. A212665 (positions of negative terms), A215142 (positions of ones), A382469 (positions of zeros).

Programs

Formula

a(p) = p, for p prime.
a(n) = 2*A006530(n) - A008472(n).

A244193 Numbers n such that the difference between the greatest prime divisor of n and the sum of the other distinct prime divisors is equal to +-1.

Original entry on oeis.org

6, 12, 18, 24, 36, 48, 54, 72, 96, 105, 108, 144, 162, 192, 216, 231, 288, 315, 324, 330, 384, 385, 429, 432, 455, 462, 486, 525, 546, 576, 648, 660, 663, 693, 735, 768, 864, 910, 924, 935, 945, 969, 972, 990, 1092, 1105, 1122, 1152, 1235, 1287, 1296, 1309
Offset: 1

Views

Author

Michel Lagneau, Jun 22 2014

Keywords

Comments

The sequence A215142 is included in this sequence.

Examples

			105 is in the sequence because 105 = 3*5*7 and 7 - (3 + 5) = 7 - 8 = -1;
231 is in the sequence because 231 = 3 * 7 * 11 and 11 - (3 + 7) = 11 - 10 = 1.
		

Crossrefs

Programs

  • Maple
    filter:= proc(n) local P,pmax;
         P:= numtheory[factorset](n);
         abs(convert(P,`+`)-2*max(P))=1
    end proc;
    select(filter, [$1..10000]); # Robert Israel, Jun 23 2014
  • Mathematica
    fpdQ[n_]:=Module[{f=Transpose[FactorInteger[n]][[1]]},Max[f]-Total[Most[f]]==1];gpdQ[n_]:=Module[{g=Transpose[FactorInteger[n]][[1]]},Max[g]-Total[Most[g]]==-1];Union[Select[Range[2,3000],fpdQ ],Select[Range[2,3000],gpdQ ]]
    dbgQ[n_]:=Module[{fi=FactorInteger[n][[All,1]]},Abs[fi[[-1]]-Total[ Most[ fi]]]==1]; Select[Range[2,1500],dbgQ] (* Harvey P. Dale, Jan 01 2020 *)

A274205 Numbers such that the sum of divisors is twice the sum of the exponential divisors.

Original entry on oeis.org

6, 24, 54, 216, 1638, 6552, 14256, 55860, 80262, 276822, 321048, 502740, 1107288, 1396500, 1724976, 12568500, 13564278, 20165460, 54257112, 168836850, 181489140, 504136500, 675347400, 4537228500, 28533427650, 60950102850, 114133710600, 162252212850, 243800411400, 649008851400, 734916514878
Offset: 1

Views

Author

Paolo P. Lava, Jun 13 2016

Keywords

Comments

All terms appear to be multiples of 6.
a(32) > 10^12. If p*r is a term, where p is prime and r is not divisible by p, then p^3*r is also a term. - Giovanni Resta, Jun 15 2016

Examples

			Divisors of 6 are 1, 2, 3 and 6 which sum to 12. The only exponential divisor is 6. Finally 12 / 6 = 2.
Divisors of 24 are 1, 2, 3, 4, 6, 8, 12, 24 which sum to 60. Exponential divisors are 6, 24 and their sum is 30. Finally 60 / 30 = 2.
		

Crossrefs

Programs

  • Maple
    with(numtheory): P:=proc(q) local a,b,c,d,j,k,n,ok;
    for n from 2 to q do a:=ifactors(n)[2]; b:=sort([op(divisors(n))]); c:=0;
    for k from 2 to nops(b) do d:=ifactors(b[k])[2]; if nops(d)=nops(a) then
    ok:=1; for j from 1 to nops(d) do if not type(a[j][2]/d[j][2],integer) then ok:=0; break; fi; od;
    if ok=1 then c:=c+b[k]; fi;  fi; od; if sigma(n)=2*c  then print(n); fi; od; end: P(10^9);
  • Mathematica
    Select[Range[10^6], 2 Times @@ Map[Sum[First[#]^d, {d, Divisors@ Last@ #}] &, FactorInteger@ #] == DivisorSigma[1, #] &] (* Michael De Vlieger, Jun 16 2016 *)

Extensions

a(16)-a(31) from Giovanni Resta, Jun 15 2016
Showing 1-3 of 3 results.