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.

Previous Showing 11-20 of 27 results. Next

A319902 Unitary sociable numbers of order 4.

Original entry on oeis.org

263820, 263940, 280380, 280500, 395730, 395910, 420570, 420750, 172459210, 209524210, 218628662, 218725430, 230143790, 231439570, 246667790, 272130250, 384121920, 384296640, 408233280, 408408000
Offset: 1

Views

Author

Michel Marcus, Oct 01 2018

Keywords

Comments

Is this a duplicate of A098188? - R. J. Mathar, Oct 04 2018
Note that the first 4 terms and the next 4 terms form two sociable groups. But then the next 8 terms belong to two distinct sociable groups, whereas in A098188 the integers are grouped by cycle.
From Hartmut F. W. Hoft, Aug 23 2023: (Start)
This sequence is A098188 in ascending order.
Among the 19 4-cycles listed in the link by J. O. M. Pedersen only four of the 6 possible patterns of relative sizes of the numbers in a cycle are realized. (End)

Crossrefs

Cf. A063919 (sum of proper unitary divisors).
Cf. A002827 (unitary perfect), A063991 (unitary amicable).
Cf. A097024 (order 5), A097030 (order 14).
Cf. A090615 (least member of sociable quadruples).
Cf. A098188.

Programs

  • Mathematica
    f[n_] := f[n] = Module[{s = 0}, s = Total[Select[Divisors[n], GCD[#, n/#] == 1 &]]; Return[s - n]]; isok1[n_] := isok1[n] = Quiet[Check[f[n] == n, 0]]; isok2[n_] := isok2[n] = Quiet[Check[f[f[n]] == n, 0]]; isok4[n_] := isok4[n] = Quiet[Check[f[f[f[f[n]]]] == n, 0]]; isok[n_] := isok[n] = isok4[n] && Not[isok1[n]] && Not[isok2[n]]; Monitor[Position[Table[isok[n], {n, 1, 408408000}], True], n] (* Robert P. P. McKone, Aug 24 2023 *)
  • PARI
    f(n) = sumdiv(n, d, if(gcd(d, n/d)==1, d)) - n;
    isok4(n) = iferr(f(f(f(f(n)))) == n, E, 0);
    isok2(n) = iferr(f(f(n)) == n, E, 0);
    isok1(n) = iferr(f(n) == n, E, 0);
    isok(n) = isok4(n) && !isok1(n) && !isok2(n);

A097010 Numbers n such that zero is eventually reached when the map x -> A034460(x) is iterated, starting from x = n.

Original entry on oeis.org

1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 79
Offset: 1

Views

Author

Labos Elemer, Aug 31 2004

Keywords

Comments

Numbers n for which A318880(n) = 0. - Antti Karttunen, Sep 23 2018
The sequence doesn't contain any numbers from attractor sets like A002827, A063991, A097024, A097030, etc, nor any number x such that the iteration of the map x -> A034460(x) would lead to such an attractor set (e.g., numbers in A097034 - A097037). - Antti Karttunen, Sep 24 2018, after the original author's example.

Crossrefs

Cf. A003062 (complement), A318880.
Differs from A129487 for the first time at n=51, as A129487(51) = 54, but that term is lacking here, as in this sequence a(51) = 55.

Programs

  • Mathematica
    di[x_] :=Divisors[x];ta={{0}}; ud[x_] :=Part[di[x],Flatten[Position[GCD[di[x],Reverse[di[x]]],1]]]; asu[x_] :=Apply[Plus,ud[x]]-x;nsf[x_,ho_] :=NestList[asu,x,ho] Do[g=n;s=Last[NestList[asu,n,100]];If[Equal[s,0],Print[{n,s}]; ta=Append[ta,n]],{n,1,256}];ta = Delete[ta,1]
  • PARI
    up_to = 10000;
    A034460(n) = (sumdivmult(n, d, if(gcd(d, n/d)==1, d))-n); \\ From A034460
    A318880(n) = { my(visited = Map()); for(j=1, oo, if(mapisdefined(visited, n), return(1), mapput(visited, n, j)); n = A034460(n); if(!n,return(0))); };
    A097010list(up_to) = { my(v = vector(up_to), k=0, n=1); while(kA318880(n), k++; v[k] = n); n++); (v); };
    v097010 = A097010list(up_to);
    A097010(n) = v097010[n]; \\ Antti Karttunen, Sep 24 2018

Extensions

Edited by Antti Karttunen, Sep 24 2018

A097033 Number of transient terms before either 0 or a finite cycle is reached when unitary-proper-divisor-sum-function f(x) = A034460(x) is iterated and the initial value is n.

Original entry on oeis.org

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

Views

Author

Labos Elemer, Aug 30 2004

Keywords

Examples

			From _Antti Karttunen_, Sep 24 2018: (Start)
For n = 1, A034460(1) = 0 that is, we end to a terminal zero after a transient part of length 1, thus a(1) = 1.
For n = 2, A034460(2) = 1, and A034460(1) = 0, so we end to a terminal zero after a transient part of length 2, thus a(2) = 2.
For n = 30, A034460(30) = 42, A034460(42) = 54, A034460(54) = 30, thus a(30) = a(42) = a(54) = 0, as 30, 42 and 54 are all contained in their own terminal cycle, without a preceding transient part. (End)
For n = 1506, the iteration-list is {1506, 1518, 1938, 2382, 2394, 2406, [2418, 2958, 3522, 3534, 4146, 4158, 3906, 3774, 4434, 4446, 3954, 3966, 3978, 3582, 2418, ..., ad infinitum]}. After a transient of length 6 the iteration ends in a cycle of length 14, thus a(1506) = 6.
If a(n) = 0, then n is a term in an attractor set like A002827, A063991, A097024, A097030.
		

Crossrefs

Cf. A318883 (sequence that implements the original definition of this sequence).

Programs

  • Mathematica
    a034460[0] = 0; (* avoids dividing by 0 when an iteration reaches 0 *)
    a034460[n_] := Total[Select[Divisors[n], GCD[#, n/#]==1&]]-n/;n>0
    transient[k_] := Module[{iter=NestWhileList[a034460, k, UnsameQ, All]}, Position[iter, Last[iter]][[1, 1]]-1]
    a097033[n_] := Map[transient, Range[n]]
    a097033[105] (* Hartmut F. W. Hoft, Jan 24 2024 *)
  • PARI
    A034460(n) = (sumdivmult(n, d, if(gcd(d, n/d)==1, d))-n); \\ From A034460
    A097033(n) = { my(visited = Map()); for(j=1, oo, if(mapisdefined(visited, n), return(mapget(visited, n)-1), mapput(visited, n, j)); n = A034460(n); if(!n,return(j))); }; \\ Antti Karttunen, Sep 23 2018

Formula

a(n) = A318883(n) + (1-A318880(n)). - Antti Karttunen, Sep 23 2018

Extensions

Definition corrected (to agree with the given terms) by Antti Karttunen, Sep 23 2018, based on observations by Hartmut F. W. Hoft

A127653 Integers whose unitary aliquot sequences terminate in 0, including 1 but excluding the other trivial cases in which n is itself either a prime or a prime power.

Original entry on oeis.org

1, 10, 12, 14, 15, 18, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 38, 39, 40, 44, 45, 46, 48, 50, 51, 52, 55, 56, 57, 58, 62, 63, 65, 68, 69, 70, 72, 74, 75, 76, 77, 80, 82, 84, 85, 86, 87, 88, 91, 92, 93, 94, 95, 96, 98, 99, 104, 105, 106, 108, 110, 111, 112, 115
Offset: 1

Views

Author

Ant King, Jan 24 2007

Keywords

Examples

			a(5) = 15 because the fifth integer that is neither prime nor a prime power and whose unitary aliquot sequence terminates in 0 is 15.
		

Crossrefs

Programs

  • Mathematica
    UnitaryDivisors[n_Integer?Positive] := Select[Divisors[n], GCD[ #, n/# ] == 1 \ &]; sstar[n_] := Plus @@ UnitaryDivisors[ n] - n; pp[k_] := If[Length[ FactorInteger[k]] == 1, True, False]; g[n_] := If[n > 0, sstar[n], 0]; UnitaryTrajectory[n_] := Most[NestWhileList[g, n, UnsameQ, All]]; Select[Range[100], Last[UnitaryTrajectory[ # ]] == 0 && ! pp[ # ] &]
    s[n_] := Times @@ (1 + Power @@@ FactorInteger[n]) - n; s[0] = s[1] = 0; q[n_] := If[PrimeNu[n] == 1, False, Module[{v = NestWhileList[s, n, UnsameQ, All]}, v[[-1]] == 0]]; Select[Range[120], q] (* Amiram Eldar, Mar 11 2023 *)

Extensions

More terms from Amiram Eldar, Mar 11 2023

A127654 Unitary aspiring numbers.

Original entry on oeis.org

66, 78, 244, 292, 476, 482, 578, 648, 680, 688, 770, 784, 832, 864, 956, 958, 976, 1168, 1354, 1360, 1392, 1488, 1600, 1658, 1670, 1906, 2232, 2264, 2294, 2376, 2480, 2552, 2572, 2576, 2626, 2712, 2732, 2806, 2842, 2870, 2904, 2912, 2992, 3024, 3096, 3140, 3172
Offset: 1

Views

Author

Ant King, Jan 24 2007

Keywords

Comments

A unitary aspiring number is an integer whose unitary aliquot sequences ends by meeting a unitary-perfect number (A098185) in its trajectory, but is not unitary-perfect itself. There are 1693 such numbers <=100000 and of these 82860 and 97020 generate the longest unitary aliquot sequences (according to A097032), each having length 18 and ending with the unitary perfect number 90.

Examples

			a(5) = 476 because the fifth non-unitary-perfect number whose unitary aliquot sequence ends in a unitary-perfect number is 476.
		

Crossrefs

Programs

  • Mathematica
    UnitaryDivisors[n_Integer?Positive] := Select[Divisors[n], GCD[ #, n/# ] == 1 \ &]; sstar[n_] := Plus @@ UnitaryDivisors[ n] - n; g[n_] := If[n > 0, sstar[n], 0]; UnitaryTrajectory[n_] := Most[NestWhileList[ g, n, UnsameQ, All]]; UnitaryPerfectNumberQ[0] = 0; UnitaryPerfectNumberQ[k_] := If[sstar[k] == k, True, False]; UnitaryAspiringNumberQ[k_] := If[UnitaryPerfectNumberQ[Last[ UnitaryTrajectory[k]]] && ! UnitaryPerfectNumberQ[k], True, False]; Select[Range[2500], UnitaryAspiringNumberQ[ # ] &]
    s[n_] := Times @@ (1 + Power @@@ FactorInteger[n]) - n; s[0] = s[1] = 0; q[n_] := Module[{v = NestWhileList[s, n, UnsameQ, All]}, v[[-1]] != n && v[[-2]] == v[[-1]] > 0]; Select[Range[3200], q] (* Amiram Eldar, Mar 11 2023 *)

Extensions

More terms from Amiram Eldar, Mar 11 2023

A318883 Number of transient terms if unitary-proper-divisor-sum-function f(x) = A063919(x) is iterated and the initial value is n.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Sep 22 2018, after Labos Elemer's A097033

Keywords

Comments

This sequence implements the original definition given for A097033.

Examples

			For n = 1, A063919(1) = 1, that is, we immediately end with a terminal cycle (of length 1 in this case), thus there are no transient part, and a(1) = 0.
For n = 2, A063919(2) = 1, and A063919(1) = 1, so we end with a terminal cycle after a transient part of length 1, thus a(2) = 1.
For n = 30, A063919(30) = 42, A063919(42) = 54, A063919(54) = 30, thus a(30) = a(42) = a(54) = 0, as 30, 42 and 54 are all contained in their own terminal cycle, without a preceding transient part.
For n = 1506, the iteration-list is {1506, 1518, 1938, 2382, 2394, 2406, [2418, 2958, 3522, 3534, 4146, 4158, 3906, 3774, 4434, 4446, 3954, 3966, 3978, 3582, 2418, ..., ad infinitum]}. After a transient of length 6 the iteration ends in a cycle of length 14, thus a(1506) = 6.
If a(n) = 0, then n is a term in an attractor set like A002827, A063991, A097024, A097030.
		

Crossrefs

Programs

  • Mathematica
    a063919[1] = 1; (* function a[] in A063919 by Jean-François Alcover *)
    a063919[n_] := Total[Select[Divisors[n], GCD[#, n/#]==1&]]-n/;n>1
    transient[k_] := Module[{iter=NestWhileList[a063919, k, UnsameQ, All]}, Position[iter, Last[iter]][[1, 1]]]-1
    a318883[n_] := Map[transient, Range[n]]
    a318883[105] (* Hartmut F. W. Hoft, Jan 25 2024 *)
  • PARI
    A034460(n) = (sumdivmult(n, d, if(gcd(d, n/d)==1, d))-n); \\ From A034460
    A063919(n) = if(1==n,n,A034460(n));
    A318883(n) = { my(visited = Map()); for(j=1, oo, if(mapisdefined(visited, n), return(mapget(visited, n)-1), mapput(visited, n, j)); n = A063919(n)); };
    \\ Or by using lists:
    pil(item,lista) = { for(i=1,#lista,if(lista[i]==item,return(i))); (0); };
    A318883(n) = { my(visited = List([]), k); for(j=1, oo, if((k = pil(n,visited)) > 0, return(k-1)); listput(visited, n); n = A063919(n)); };

Formula

a(n) = A318882(n) - A097031(n).
a(n) = A097033(n) + A318880(n) - 1.

A327157 Numbers that are members of unitary sigma aliquot cycles (union of unitary perfect, unitary amicable and unitary sociable numbers).

Original entry on oeis.org

6, 30, 42, 54, 60, 90, 114, 126, 1140, 1260, 1482, 1878, 1890, 2142, 2178, 2418, 2958, 3522, 3534, 3582, 3774, 3906, 3954, 3966, 3978, 4146, 4158, 4434, 4446, 18018, 22302, 24180, 29580, 32130, 35220, 35238, 35340, 35820, 37740, 38682, 39060, 39540, 39660, 39780, 40446, 41460, 41580, 44340, 44460, 44772, 45402
Offset: 1

Views

Author

Antti Karttunen, Sep 17 2019

Keywords

Comments

Positions of nonzeros in A327159.
Numbers n for which n = A034460^k(n) for some k >= 1, where A034460^k(n) means k-fold application of A034460 starting from n.
The terms that are not multiples of 6 are: 142310, 168730, 1077890, 1099390, 1156870, 1292570, ..., that seem all to be present in A063991.
Among the first 440 terms, there are numbers present in 1-cycles (A002827), 2-cycles (A063991), and also cycles of sizes 3, 4 (A319902), 5 (A097024), 6 (A319917), 14 (A097030), 25, 26, 39 and 65.

Examples

			6 is a member as A034460(6) = 6.
30 is a member as A034460(A034460(A034460(30))) = 30.
		

Crossrefs

Subsequence of A003062.

Programs

  • Mathematica
    (* Function cycleL[] and support a034460[] are defined in A327159 *)
    a327157[n_] := Map[cycleL, Range[n]]
    a327157[45402] (* Hartmut F. W. Hoft, Feb 04 2024 *)
  • PARI
    A034448(n) = { my(f=factorint(n)); prod(k=1, #f~, 1+(f[k, 1]^f[k, 2])); };
    A034460(n) = (A034448(n) - n);
    memo327159 = Map();
    A327159(n) = if(1==n,0,my(v,orgn=n,xs=Set([])); if(mapisdefined(memo327159, n, &v), v, while(n && !vecsearch(xs,n), xs = setunion([n],xs); n = A034460(n); if(mapisdefined(memo327159,n),for(i=1,#xs,mapput(memo327159,xs[i],0)); return(0))); if(n==orgn,v = length(xs); for(i=1,v,mapput(memo327159,xs[i],v)), v = 0; mapput(memo327159,orgn,v)); (v)));
    k=0; n=0; while(k<=1001, n++; if(t=A327159(n), k++; print(n," -> ",t); write("b327157.txt", k," ", n)));

A097034 Initial values for iteration of the function f(x) = A063919(x) such that the iteration ends in a 14-cycle, i.e., in A097030.

Original entry on oeis.org

1506, 1518, 1806, 1902, 1914, 1938, 1950, 2226, 2382, 2394, 2406, 2418, 2478, 2826, 2910, 2946, 2958, 3234, 3282, 3294, 3330, 3510, 3522, 3534, 3546, 3582, 3642, 3654, 3774, 3906, 3954, 3966, 3978, 4146, 4158, 4194, 4434, 4446, 4854, 4866, 4878, 5262
Offset: 1

Views

Author

Labos Elemer, Aug 30 2004

Keywords

Examples

			n=1506 is here because its iteration list = {1506, 1518, 1938, 2382, 2394, 2406, [2418, ...., 3582, 2418}. After a transient of length 6, the iteration ends in a cycle of length 14.
		

Crossrefs

Programs

  • Mathematica
    a063919[1] = 1; (* function a[] in A063919 by Jean-François Alcover *)
    a063919[n_] :=
     Total[Select[Divisors[n], GCD[#, n/#] == 1 &]] - n /; n > 1
    a097034Q[k_] :=
     Module[{iter = NestWhileList[a063919, k, UnsameQ, All]},
      Apply[Subtract, Reverse[Flatten[Position[iter, Last[iter]], 1]]] ==
       14]
    a097034[n_] := Select[Range[n], a097034Q]
    a097034[5262] (* Hartmut F. W. Hoft, Jan 25 2024 *)

A097035 Initial values for the iteration of the function f(x) = A063919(x) such that the iteration ends in a 5-cycle, i.e., in A097024.

Original entry on oeis.org

570, 870, 1230, 1290, 1326, 1482, 1530, 1686, 1698, 1710, 1794, 1866, 1878, 1890, 2058, 2070, 2142, 2154, 2166, 2178, 2238, 2250, 2502, 2802, 2814, 3042, 3222, 3630, 3702, 3714, 3726, 4350, 4494, 4506, 4518, 4914, 5010, 5142, 5154, 5166, 5284, 5418
Offset: 1

Views

Author

Labos Elemer, Aug 30 2004

Keywords

Examples

			n = 570: list = {570, 870, 1290, [1878, 1890, 2142, 2178, 1482], 1878}; after 3 transients, a 5-cycle arises.
n = 1230: {1230, 1794, 2238, 2250, 1530, 1710, [1890, 2142, 2178, 1482, 1878]} ; the iteration to the 5-cycle is not necessarily monotone. - _Hartmut F. W. Hoft_, Jan 25 2024
		

Crossrefs

Programs

  • Mathematica
    a063919[1] = 1; (* function a[] in A063919 by Jean-François Alcover *)
    a063919[n_] := Total[Select[Divisors[n], GCD[#, n/#]==1&]]-n/;n>1
    a097035Q[k_] := Module[{iter=NestWhileList[a063919, k, UnsameQ, All]}, Apply[Subtract, Reverse[Flatten[Position[iter, Last[iter]], 1]]]==5]
    a097035[n_] := Select[Range[n], a097035Q]
    a097035[5418] (* Hartmut F. W. Hoft, Jan 25 2024 *)

A127655 Numbers whose unitary aliquot sequences end in a unitary amicable pair, but which are not unitary amicable numbers themselves.

Original entry on oeis.org

102, 388, 436, 484, 812, 866, 1020, 1036, 1040, 1116, 1196, 1380, 1500, 1524, 1532, 1552, 1618, 1644, 1716, 1724, 1726, 1744, 1916, 2020, 2066, 2068, 2324, 2368, 2386, 2486, 2592, 2684, 2880, 2924, 3032, 3098, 3120, 3124, 3136, 3276, 3400, 3442, 3444, 3446, 3482
Offset: 1

Views

Author

Ant King, Jan 25 2007

Keywords

Examples

			a(5)=812 because the fifth non-unitary amicable number whose unitary aliquot sequence ends in a unitary amicable pair is 812.
		

References

  • Riele, H. J. J. te; Unitary Aliquot Sequences. MR 139/72, Mathematisch Centrum, 1972, Amsterdam.
  • Riele, H. J. J. te; Further Results On Unitary Aliquot Sequences. NW 2/73, Mathematisch Centrum, 1973, Amsterdam.

Crossrefs

Programs

  • Mathematica
    UnitaryDivisors[n_Integer?Positive]:=Select[Divisors[n],GCD[ #,n/# ]==1&];sstar[n_]:=Plus@@UnitaryDivisors[n]-n;g[n_] := If[n > 0, sstar[n], 0];UnitaryTrajectory[n_] := Most[NestWhileList[g, n, UnsameQ, All]];UnitaryAmicableNumberQ[k_]:=If[Nest[sstar,k,2]?k && !sstar[k]?k,True,False];Select[Range[2500],!UnitaryAmicableNumberQ[ # ] && UnitaryAmicableNumberQ[Last[UnitaryTrajectory[ # ]]] &]

Extensions

More terms from Amiram Eldar, Apr 06 2019
Previous Showing 11-20 of 27 results. Next