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-10 of 14 results. Next

A370513 Complement of A323599.

Original entry on oeis.org

2, 5, 29, 39, 53, 59, 73, 95, 119, 123, 125, 129, 137, 145, 147, 149, 157, 159, 163, 173, 179, 191, 199, 207, 209, 213, 219, 221, 235, 251, 257, 263, 265, 269, 271, 279, 291, 293, 299, 303, 305, 325, 327, 329, 343, 345, 347, 359, 365, 367, 369, 375, 385, 395, 397
Offset: 1

Views

Author

Torlach Rush, Feb 20 2024

Keywords

Comments

Terms of this sequence are not solutions of Sum_{d|k} A069359(d), k >= 1.
Proof that 2 is not a solution of Sum_{d|k} A069359(d), k >= 1: (Start)
If 2 is a solution then the only summands of the above are either (0,2) or (0,1,1).
(0,2) cannot be the only summands. If 2 is a summand then it is also a divisor of a(n) and A069359(2) = 1. If 2 is a summand then so must 1 be a summand.
(0,1,1) cannot be the only summands. There must exist an additional summand A069359(p_1*p_2) where p_1 and p_2 (primes) contribute to each 1 in (0,1,1).
(End)
To prove that 5 is not a solution of Sum_{d|k} A069359(d), k >= 1 we need to show that each of the following summands cannot exist: (0,5), (0,1,4), (0,1,2,2), (0,1,1,3), (0,1,1,1,2). (0,1,1,1,1,1). Following from the above proof this is elementary.

Examples

			2 is a term because it is not a solution of Sum_{d|k} A069359(d), k >= 1. See proof in Comments.
		

Crossrefs

A276085 Primorial base log-function: fully additive with a(p) = p#/p, where p# = A034386(p).

Original entry on oeis.org

0, 1, 2, 2, 6, 3, 30, 3, 4, 7, 210, 4, 2310, 31, 8, 4, 30030, 5, 510510, 8, 32, 211, 9699690, 5, 12, 2311, 6, 32, 223092870, 9, 6469693230, 5, 212, 30031, 36, 6, 200560490130, 510511, 2312, 9, 7420738134810, 33, 304250263527210, 212, 10, 9699691, 13082761331670030, 6, 60, 13, 30032, 2312, 614889782588491410, 7, 216, 33, 510512, 223092871, 32589158477190044730, 10
Offset: 1

Views

Author

Antti Karttunen, Aug 21 2016

Keywords

Comments

Completely additive with a(p^e) = e * A002110(A000720(p)-1).
This is a left inverse of A276086 ("primorial base exp-function"), hence the name "primorial base log-function". When the domain is restricted to the terms of A048103, this works also as a right inverse, as A276086(a(A048103(n))) = A048103(n) for all n >= 1. - Antti Karttunen, Apr 24 2022
On average, every third term is a multiple of 4. See A369001. - Antti Karttunen, May 26 2024

Crossrefs

A left inverse of A276086.
Positions of multiples of k in this sequence, for k=2, 3, 4, 5, 8, 27, 3125: A003159, A339746, A369002, A373140, A373138, A377872, A377878.
Cf. A036554 (positions of odd terms), A035263, A096268 (parity of terms).
Cf. A372575 (rgs-transform), A372576 [a(n) mod 360], A373842 [= A003415(a(n))].
Cf. A373145 [= gcd(A003415(n), a(n))], A373361 [= gcd(n, a(n))], A373362 [= gcd(A001414(n), a(n))], A373485 [= gcd(A083345(n), a(n))], A373835 [= gcd(bigomega(n), a(n))], and also A373367 and A373147 [= A003415(n) mod a(n)], A373148 [= a(n) mod A003415(n)].
Other completely additive sequences with primes p mapped to a function of p include: A001222 (with a(p)=1), A001414 (with a(p)=p), A059975 (with a(p)=p-1), A341885 (with a(p)=p*(p+1)/2), A373149 (with a(p)=prevprime(p)), A373158 (with a(p)=p#).
Cf. also A276075 for factorial base and A048675, A054841 for base-2 and base-10 analogs.

Programs

  • Mathematica
    nn = 60; b = MixedRadix[Reverse@ Prime@ Range@ PrimePi[nn + 1]]; Table[FromDigits[#, b] &@ Reverse@ If[n == 1, {0}, Function[k, ReplacePart[Table[0, {PrimePi[k[[-1, 1]]]}], #] &@ Map[PrimePi@ First@ # -> Last@ # &, k]]@ FactorInteger@ n], {n, nn}] (* Version 10.2, or *)
    f[w_List] := Total[Times @@@ Transpose@ {Map[Times @@ # &, Prime@ Range@ Range[0, Length@ w - 1]], Reverse@ w}]; Table[f@ Reverse@ If[n == 1, {0}, Function[k, ReplacePart[Table[0, {PrimePi[k[[-1, 1]]]}], #] &@ Map[PrimePi@ First@ # -> Last@ # &, k]]@ FactorInteger@ n], {n, 60}] (* Michael De Vlieger, Aug 30 2016 *)
  • PARI
    A276085(n) = { my(f = factor(n), pr=1, i=1, s=0); for(k=1, #f~, while(i <= primepi(f[k, 1])-1, pr *= prime(i); i++); s += f[k, 2]*pr); (s); }; \\ Antti Karttunen, Nov 11 2024
    
  • Python
    from sympy import primorial, primepi, factorint
    def a002110(n):
        return 1 if n<1 else primorial(n)
    def a(n):
        f=factorint(n)
        return sum(f[i]*a002110(primepi(i) - 1) for i in f)
    print([a(n) for n in range(1, 101)]) # Indranil Ghosh, Jun 22 2017

Formula

a(1) = 0; for n > 1, a(n) = a(A028234(n)) + (A067029(n) * A002110(A055396(n)-1)).
a(1) = 0, a(n) = (e1*A002110(i1-1) + ... + ez*A002110(iz-1)) when n = prime(i1)^e1 * ... * prime(iz)^ez.
Other identities.
For all n >= 0:
a(A276086(n)) = n.
a(A000040(1+n)) = A002110(n).
a(A002110(1+n)) = A143293(n).
From Antti Karttunen, Apr 24 & Apr 29 2022: (Start)
a(A283477(n)) = A283985(n).
a(A108951(n)) = A346105(n). [The latter has a similar additive formula as this sequence, but instead of primorials, uses their partial sums]
When applied to sequences where a certain subset of the divisors of n has been multiplicatively encoded with the help of A276086, this yields a corresponding number-theoretical sequence, i.e. completes their computation:
a(A319708(n)) = A001065(n) and a(A353564(n)) = A051953(n).
a(A329350(n)) = A069359(n) and a(A329380(n)) = A323599(n).
In the following group, the sum of the rhs-sequences is n [on each row, as say, A328841(n)+A328842(n)=n], because the pointwise product of the corresponding lhs-sequences is A276086:
a(A053669(n)) = A053589(n) and a(A324895(n)) = A276151(n).
a(A328571(n)) = A328841(n) and a(A328572(n)) = A328842(n).
a(A351231(n)) = A351233(n) and a(A327858(n)) = A351234(n).
a(A351251(n)) = A351253(n) and a(A324198(n)) = A351254(n).
The sum or difference of the rhs-sequences is A108951:
a(A344592(n)) = A346092(n) and a(A346091(n)) = A346093(n).
a(A346106(n)) = A346108(n) and a(A346107(n)) = A346109(n).
Here the two sequences are inverse permutations of each other:
a(A328624(n)) = A328625(n) and a(A328627(n)) = A328626(n).
a(A346102(n)) = A328622(n) and a(A346233(n)) = A328623(n).
a(A346101(n)) = A289234(n). [Self-inverse]
Other correspondences:
a(A324350(x,y)) = A324351(x,y).
a(A003961(A276086(n))) = A276154(n). [The primorial base left shift]
a(A276076(n)) = A351576(n). [Sequence reinterpreting factorial base representation as a primorial base representation]
(End)

Extensions

Name amended by Antti Karttunen, Apr 24 2022
Name simplified, the old name moved to the comments - Antti Karttunen, Jun 23 2024

A069359 a(n) = n * Sum_{p|n} 1/p where p are primes dividing n.

Original entry on oeis.org

0, 1, 1, 2, 1, 5, 1, 4, 3, 7, 1, 10, 1, 9, 8, 8, 1, 15, 1, 14, 10, 13, 1, 20, 5, 15, 9, 18, 1, 31, 1, 16, 14, 19, 12, 30, 1, 21, 16, 28, 1, 41, 1, 26, 24, 25, 1, 40, 7, 35, 20, 30, 1, 45, 16, 36, 22, 31, 1, 62, 1, 33, 30, 32, 18, 61, 1, 38, 26, 59, 1, 60, 1, 39, 40, 42, 18, 71, 1, 56
Offset: 1

Views

Author

Benoit Cloitre, Apr 15 2002

Keywords

Comments

Coincides with arithmetic derivative on squarefree numbers: a(A005117(n)) = A068328(n) = A003415(A005117(n)). - Reinhard Zumkeller, Jul 20 2003, Clarified by Antti Karttunen, Nov 15 2019
a(n) = n-1 iff n = 1 or n is a primary pseudoperfect number A054377. - Jonathan Sondow, Apr 16 2014
a(1) = 0 by the standard convention for empty sums.
“Seva” on the MathOverflow link asks if the iterates of this sequence are all eventually 0. - Charles R Greathouse IV, Feb 15 2019

Examples

			a(12) = 10 because the prime divisors of 12 are 2 and 3 so we have: 12/2 + 12/3 = 6 + 4 = 10. - _Geoffrey Critzer_, Mar 17 2015
		

Crossrefs

Cf. A322068 (partial sums), A323599 (Inverse Möbius transform).
Sequences of the form n^k * Sum_{p|n, p prime} 1/p^k for k = 0..10: A001221 (k=0), this sequence (k=1), A322078 (k=2), A351242 (k=3), A351244 (k=4), A351245 (k=5), A351246 (k=6), A351247 (k=7), A351248 (k=8), A351249 (k=9), A351262 (k=10).

Programs

  • Magma
    [0] cat [n*&+[1/p: p in PrimeDivisors(n)]:n in [2..80]]; // Marius A. Burtea, Jan 21 2020
    
  • Maple
    A069359 := n -> add(n/d, d = select(isprime, numtheory[divisors](n))):
    seq(A069359(i), i = 1..20); # Peter Luschny, Jan 31 2012
    # second Maple program:
    a:= n-> n*add(1/i[1], i=ifactors(n)[2]):
    seq(a(n), n=1..100);  # Alois P. Heinz, Oct 23 2019
  • Mathematica
    f[list_, i_] := list[[i]]; nn = 100; a = Table[n, {n, 1, nn}]; b =
    Table[If[PrimeQ[n], 1, 0], {n, 1, nn}]; Table[DirichletConvolve[f[a, n], f[b, n], n, m], {m, 1, nn}] (* Geoffrey Critzer, Mar 17 2015 *)
  • PARI
    a(n) = n*sumdiv(n, d, isprime(d)/d); \\ Michel Marcus, Mar 18 2015
    
  • PARI
    a(n) = my(ps=factor(n)[,1]~);sum(k=1,#ps,n\ps[k]) \\ Franklin T. Adams-Watters, Apr 09 2015
    
  • Python
    from sympy import primefactors
    def A069359(n): return sum(n//p for p in primefactors(n)) # Chai Wah Wu, Feb 05 2022
  • Sage
    def A069359(n) :
        D = filter(is_prime, divisors(n))
        return add(n/d for d in D)
    print([A069359(i) for i in (1..20)]) # Peter Luschny, Jan 31 2012
    

Formula

G.f.: Sum(x^p(j)/(1-x^p(j))^2,j>=1), where p(j) is the j-th prime. - Vladeta Jovovic, Mar 29 2006
a(n) = A230593(n) - n. a(n) = A010051(n) (*) A000027(n), where operation (*) denotes Dirichlet convolution, that is, convolution of type: a(n) = Sum_(d|n) b(d) * c(n/d) = Sum_{d|n} A010051(d) * A000027(n/d). - Jaroslav Krizek, Nov 07 2013
a(A054377(n)) = A054377(n) - 1. - Jonathan Sondow, Apr 16 2014
Dirichlet g.f.: zeta(s - 1)*primezeta(s). - Geoffrey Critzer, Mar 17 2015
Sum_{k=1..n} a(k) ~ A085548 * n^2 / 2. - Vaclav Kotesovec, Feb 04 2019
From Antti Karttunen, Nov 15 2019: (Start)
a(n) = Sum_{d|n} A008683(n/d)*A323599(d).
a(n) = A003415(n) - A329039(n) = A230593(n) - n = A306369(n) - A000010(n).
a(n) = A276085(A329350(n)) = A048675(A329352(n)).
a(A276086(n)) = A329029(n), a(A328571(n)) = A329031(n).
(End)
a(n) = Sum_{d|n} A000010(d) * A001221(n/d). - Torlach Rush, Jan 21 2020
a(n) = Sum_{k=1..n} omega(gcd(n, k)). - Ilya Gutkovskiy, Feb 21 2020
a(p^k) = p^(k-1) for p prime and k>=1. - Wesley Ivan Hurt, Jul 15 2025

A066872 a(n) = prime(n)^2 + 1.

Original entry on oeis.org

5, 10, 26, 50, 122, 170, 290, 362, 530, 842, 962, 1370, 1682, 1850, 2210, 2810, 3482, 3722, 4490, 5042, 5330, 6242, 6890, 7922, 9410, 10202, 10610, 11450, 11882, 12770, 16130, 17162, 18770, 19322, 22202, 22802, 24650, 26570, 27890, 29930, 32042
Offset: 1

Views

Author

Joseph L. Pe, Jan 21 2002

Keywords

Comments

From R. J. Mathar, Aug 28 2011: (Start)
There are at least three "natural" embeddings of this function into multiplicative functions b(n), c(n) and d(n):
(i) The first is b(n) = 1, 5, 10, 0, 26, 0, 50, ... (n>=1) with b(p) = p^2+1, b(p^e)=0 if e>=2, substituting zero for all composite n.
(ii) The second is c(n) = 1, 5, 10, 9, 26, 50, 50, 17, 28, 130, ... (n>=1) with c(p^e)= p^(e+1)+1.
(iii) The third is d(n) = 1, 5, 10, 5, 26, 50, 50, 5, 10, 130, ... (n>=1) with d(p^e) = p^2+1 if e>=1. (End)
For n > 1, a(n)/2 is of the form 4*k+1. - Altug Alkan, Apr 08 2016

Crossrefs

Programs

Formula

a(n) = A002522(A000040(n)). - Altug Alkan, Apr 08 2016
a(n) = A000010(A000040(n)^2) + A323599(A000040(n)^2). - Torlach Rush, Jan 25 2019
Product_{n>=1} (1 - 1/a(n)) = Pi^2/15 (A182448). - Amiram Eldar, Nov 07 2022
From Antti Karttunen, Dec 24 2024: (Start)
a(n) = 1 + A001248(n).
a(n) = A000203(A000040(n)^3) / A000203(A000040(n)). (End)

A369744 a(n) = Sum_{p|n, p prime} p * omega(n/p).

Original entry on oeis.org

0, 0, 0, 2, 0, 5, 0, 2, 3, 7, 0, 7, 0, 9, 8, 2, 0, 8, 0, 9, 10, 13, 0, 7, 5, 15, 3, 11, 0, 20, 0, 2, 14, 19, 12, 10, 0, 21, 16, 9, 0, 24, 0, 15, 11, 25, 0, 7, 7, 12, 20, 17, 0, 8, 16, 11, 22, 31, 0, 22, 0, 33, 13, 2, 18, 32, 0, 21, 26, 28, 0, 10, 0, 39, 13, 23, 18, 36
Offset: 1

Views

Author

Wesley Ivan Hurt, Jan 30 2024

Keywords

Comments

Dirichlet convolution of A061397(n) and A001221(n). - Wesley Ivan Hurt, Apr 24 2025

Crossrefs

Cf. also A369911.

Programs

  • Mathematica
    Table[DivisorSum[n, #*PrimeNu[n/#] &, PrimeQ[#] &], {n, 100}]
  • PARI
    A369744(n) = if(1==n, 0, my(f=factor(n)); sum(i=1, #f~, f[i,1]*omega(n/f[i, 1]))); \\ Antti Karttunen, Jan 23 2025

Formula

a(p^k) = 1 for p prime and k = 1, else p if k >= 2. - Wesley Ivan Hurt, Jun 26 2024
a(n) = Sum_{d|n} d * omega(n/d) * c(d), where c = A010051. - Wesley Ivan Hurt, Apr 15 2025

A329354 a(n) = Sum_{d|n} d*omega(d).

Original entry on oeis.org

0, 2, 3, 6, 5, 17, 7, 14, 12, 27, 11, 45, 13, 37, 38, 30, 17, 62, 19, 71, 52, 57, 23, 101, 30, 67, 39, 97, 29, 162, 31, 62, 80, 87, 82, 162, 37, 97, 94, 159, 41, 220, 43, 149, 137, 117, 47, 213, 56, 152, 122, 175, 53, 197, 126, 217, 136, 147, 59, 410, 61, 157, 187, 126, 148, 336, 67, 227, 164, 342, 71, 362, 73, 187, 213, 253, 172, 394, 79
Offset: 1

Views

Author

Antti Karttunen, Nov 15 2019

Keywords

Crossrefs

Programs

  • Mathematica
    Table[Sum[d*PrimeNu[d], {d, Divisors[n]}], {n, 1, 100}] (* Vaclav Kotesovec, Aug 18 2021 *)
  • PARI
    A329354(n) = sumdiv(n,d,omega(d)*d);

Formula

a(n) = Sum_{d|n} d*A001221(d).
a(n) = A180253(n) - A323599(n).
a(n) = A328260(n) + A329375(n).
a(n) = Sum_{d|n} (n/d) * sopf(d). - Wesley Ivan Hurt, May 24 2021
Dirichlet g.f.: primezeta(s-1) * zeta(s-1) * zeta(s). - Ilya Gutkovskiy, Aug 18 2021
Conjecture: Sum_{k=1..n} a(k) ~ Pi^2 * n^2 * (log(log(n)) + A077761) / 12. - Vaclav Kotesovec, Mar 03 2023

A329380 a(n) = Product_{d|n} A276086(d)^A001221(n/d).

Original entry on oeis.org

1, 2, 2, 6, 2, 72, 2, 54, 12, 216, 2, 9720, 2, 120, 432, 810, 2, 64800, 2, 262440, 240, 1080, 2, 32805000, 36, 600, 360, 243000, 2, 28343520000, 2, 182250, 2160, 5400, 720, 27337500000, 2, 3000, 1200, 13286025000, 2, 72900000000, 2, 32805000, 11664000, 27000, 2, 69198046875000, 20, 218700000, 10800, 30375000, 2, 911250000000, 6480, 184528125000, 6000
Offset: 1

Views

Author

Antti Karttunen, Nov 12 2019

Keywords

Crossrefs

Cf. A001221, A276085, A276086, A323599, A329381 (rgs-transform).
Cf. also A329350.

Programs

  • PARI
    A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
    A329380(n) = { my(m=1); fordiv(n,d,m *= A276086(d)^omega(n/d)); (m); };

Formula

a(n) = Product_{d|n} A276086(d)^A001221(n/d).
A276085(a(n)) = A323599(n).

A329347 Dirichlet convolution of the identity function with bigomega.

Original entry on oeis.org

0, 1, 1, 4, 1, 7, 1, 11, 5, 9, 1, 23, 1, 11, 10, 26, 1, 28, 1, 31, 12, 15, 1, 59, 7, 17, 18, 39, 1, 54, 1, 57, 16, 21, 14, 87, 1, 23, 18, 81, 1, 68, 1, 55, 43, 27, 1, 135, 9, 52, 22, 63, 1, 94, 18, 103, 24, 33, 1, 166, 1, 35, 53, 120, 20, 96, 1, 79, 28, 90, 1, 218, 1, 41, 59, 87, 20, 110, 1, 187, 58, 45, 1, 212, 24, 47, 34, 147, 1, 207, 22
Offset: 1

Views

Author

Antti Karttunen, Nov 12 2019

Keywords

Crossrefs

Programs

  • PARI
    A329347(n) = sumdiv(n,d,(n/d)*bigomega(d));

Formula

a(n) = Sum_{d|n} d * A001222(n/d).

A180253 Call two divisors of n adjacent if the larger is a prime times the smaller. a(n) is the sum of elements of all pairs of adjacent divisors of n.

Original entry on oeis.org

0, 3, 4, 9, 6, 24, 8, 21, 16, 36, 12, 64, 14, 48, 48, 45, 18, 87, 20, 96, 64, 72, 24, 144, 36, 84, 52, 128, 30, 216, 32, 93, 96, 108, 96, 229, 38, 120, 112, 216, 42, 288, 44, 192, 174, 144, 48, 304, 64, 201, 144, 224, 54, 276, 144, 288, 160, 180, 60, 552, 62, 192, 232, 189
Offset: 1

Views

Author

Vladimir Shevelev, Aug 20 2010

Keywords

Comments

The pairs of adjacent divisors of n are counted in A062799(n).
For each divisor d of n we can check in how many pairs it occurs. For each prime divisor p of n, see the exponent of p in the factorization of d. If it's positive (p|d) then it occurs once more. If d*p doesn't divide n, add one to the frequency as well. - David A. Corneth, Dec 17 2018

Examples

			a(4) = (1 + 2) + (2 + 4) = 9.
a(120) = a(3*5*2^3) = 4*6*(3*8 + 4*4 + 4*2 + 3) = 1224.
		

Crossrefs

Programs

  • Mathematica
    divisorSumPrime[n_] := DivisorSum[n, 1+1/# &, PrimeQ[#] &]; a[n_] := DivisorSum[n, #*divisorSumPrime[#]& ]; Array[a, 70] (* Amiram Eldar, Dec 17 2018 *)
  • PARI
    a(n) = sumdiv(n, d, d*sumdiv(d, p, isprime(p)*(1+1/p))); \\ Michel Marcus, Dec 17 2018
    
  • PARI
    a(n) = my(f = factor(n), res = 0); fordiv(n, d, for(i = 1, #f~, v = valuation(d, f[i, 1]); res+=(d * ((v > 0) + (v < f[i, 2]))))); res \\ David A. Corneth, Dec 17 2018

Formula

a(n) = Sum_{d|n} d*Sum_{p|d} (1 + 1/p) where p is restricted to primes.
a(n) = Sum_{d|n} A069359(d) + Sum_{d|n} d*A001221(d).
a(n) = A323599(n) + A329354(n) = A323599(n) + A328260(n) + A329375(n). - Antti Karttunen, Nov 15 2019
a(p^k) = (p^k - 1)*(p + 1)/(p - 1).
a(p_1*p_2*...*p_m) = m*(p_1 + 1)*(p_2 + 1)*...*(p_m + 1).
a(p*q^k) = (p + 1)*(2*q^k + 3*q^(k - 1) + 3*q^(k - 2) + ... + 3*q + 2).
a(p*q*r^k) = (p + 1)*(q + 1)*(3*r^k + 4*r^(k - 1) + 4*r^(k - 2) + ... + 4*r + 3) and similar for a larger number of distinct prime factors of n.

Extensions

Definition rephrased, entries checked, one example added. - R. J. Mathar, Oct 25 2010

A329381 Lexicographically earliest infinite sequence such that a(i) = a(j) => A329380(i) = A329380(j) for all i, j.

Original entry on oeis.org

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

Views

Author

Antti Karttunen, Nov 12 2019

Keywords

Comments

Restricted growth sequence transform of A329380.
For all i, j:
A305800(i) = A305800(j) => a(i) = a(j),
a(i) = a(j) => A323599(i) = A323599(j).

Crossrefs

Programs

  • PARI
    up_to = 65537;
    rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om,invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om,invec[i],i); outvec[i] = u; u++ )); outvec; };
    A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
    A329380(n) = { my(m=1); fordiv(n,d,m *= A276086(d)^omega(n/d)); (m); };
    v329381 = rgs_transform(vector(up_to, n, A329380(n)));
    A329381(n) = v329381[n];
Showing 1-10 of 14 results. Next