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 17 results. Next

A351461 Lexicographically earliest infinite sequence such that a(i) = a(j) => A206787(i) = A206787(j) and A336651(i) = A336651(j) for all i, j >= 1.

Original entry on oeis.org

1, 1, 2, 1, 3, 2, 4, 1, 5, 3, 6, 2, 7, 4, 8, 1, 9, 5, 10, 3, 11, 6, 8, 2, 12, 7, 13, 4, 14, 8, 11, 1, 15, 9, 15, 5, 16, 10, 17, 3, 18, 11, 19, 6, 20, 8, 15, 2, 21, 12, 22, 7, 23, 13, 22, 4, 24, 14, 25, 8, 26, 11, 27, 1, 28, 15, 29, 9, 30, 15, 22, 5, 31, 16, 32, 10, 30, 17, 24, 3, 33, 18, 28, 11, 34, 19, 35, 6, 36, 20, 37, 8, 38, 15, 35, 2, 39, 21, 40, 12, 41, 22, 42, 7, 43
Offset: 1

Views

Author

Antti Karttunen, Feb 11 2022

Keywords

Comments

Restricted growth sequence transform of the ordered pair [A206787(n), A336651(n)], or equally, of sequence b(n) = A291750(A000265(n)).
For all i, j >= 1:
A003602(i) = A003602(j) => A351040(i) = A351040(j) => a(i) = a(j),
A324400(i) = A324400(j) => A351460(i) = A351460(j) => a(i) = a(j),
a(i) = a(j) => A000593(i) = A000593(j),
a(i) = a(j) => A347385(i) = A347385(j),
a(i) = a(j) => A351037(i) = A351037(j) => A347240(i) = A347240(j).
From Antti Karttunen, Nov 23 2023: (Start)
Conjectured to be equal to the lexicographically earliest infinite sequence such that b(i) = b(j) => A000593(i) = A000593(j) and A336467(i) = A336467(j) for all i, j >= 1. In any case, a(i) = a(j) => b(i) = b(j) for all i, j >= 1 [because both A000593(n) and A336467(n) can be computed from the values of A206787(n) and A336651(n)], but whether the implication holds to the opposite direction is still open. Empirically this has been checked up to n = 2^22. See also comment in A351040.
(End)

Crossrefs

Differs from A351037 for the first time at n=103, where a(103) = 42 while A351037(103) = 27.

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; };
    A206787(n) = sumdiv(n, d, d*(d % 2)*issquarefree(d)); \\ From A206787
    A336651(n) = { my(f=factor(n)); prod(i=1, #f~, if(2==f[i,1],1,f[i,1]^(f[i,2]-1))); };
    Aux351461(n) = [A206787(n), A336651(n)];
    v351461 = rgs_transform(vector(up_to, n, Aux351461(n)));
    A351461(n) = v351461[n];

A351460 Lexicographically earliest infinite sequence such that a(i) = a(j) => A006530(i) = A006530(j), A206787(i) = A206787(j) and A336651(i) = A336651(j) for all i, j >= 1.

Original entry on oeis.org

1, 2, 3, 2, 4, 3, 5, 2, 6, 4, 7, 3, 8, 5, 9, 2, 10, 6, 11, 4, 12, 7, 13, 3, 14, 8, 15, 5, 16, 9, 17, 2, 18, 10, 19, 6, 20, 11, 21, 4, 22, 12, 23, 7, 24, 13, 25, 3, 26, 14, 27, 8, 28, 15, 29, 5, 30, 16, 31, 9, 32, 17, 33, 2, 34, 18, 35, 10, 36, 19, 37, 6, 38, 20, 39, 11, 40, 21, 41, 4, 42, 22, 43, 12, 44, 23, 45, 7, 46, 24, 47, 13, 48, 25, 49, 3, 50, 26, 51, 14, 52, 27, 53, 8, 54
Offset: 1

Views

Author

Antti Karttunen, Feb 11 2022

Keywords

Comments

Restricted growth sequence transform of the ordered triplet [A006530(n), A206787(n), A336651(n)].
For all i, j >= 1:
A324400(i) = A324400(j) => a(i) = a(j),
a(i) = a(j) => A347241(i) = A347241(j),
a(i) = a(j) => A351461(i) = A351461(j) => A347240(i) = A347240(j).

Examples

			a(429) = a(455) because 429 = 3*11*13 and 455 = 5*7*13, so they have equal largest prime factor (A006530), and they also agree on A206787(429) = A206787(455) = 672 and on A336651(429) = A336651(455) = 1 (because both are squarefree), therefore they get equal value (which is 216) allotted to them by the restricted growth sequence transform. - _Antti Karttunen_, Feb 14 2022
		

Crossrefs

Cf. also A324400, A351452.
Differs from A351454 for the first time at n=121, where a(121) = 62, while A351454(121) = 51.
Differs from A103391(1+n) for the first time after n=1 at n=455, where a(455) = 216, while A103391(456) = 229.

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; };
    A006530(n) = if(1==n, n, my(f=factor(n)); f[#f~, 1]);
    A206787(n) = sumdiv(n, d, d*(d % 2)*issquarefree(d)); \\ From A206787
    A336651(n) = { my(f=factor(n)); prod(i=1, #f~, if(2==f[i,1],1,f[i,1]^(f[i,2]-1))); };
    Aux351460(n) = [A006530(n), A206787(n), A336651(n)];
    v351460 = rgs_transform(vector(up_to, n, Aux351460(n)));
    A351460(n) = v351460[n];

A351040 Lexicographically earliest infinite sequence such that a(i) = a(j) => A336158(i) = A336158(j), A206787(i) = A206787(j) and A336651(i) = A336651(j) for all i, j >= 1.

Original entry on oeis.org

1, 1, 2, 1, 3, 2, 4, 1, 5, 3, 6, 2, 7, 4, 8, 1, 9, 5, 10, 3, 11, 6, 12, 2, 13, 7, 14, 4, 15, 8, 16, 1, 17, 9, 17, 5, 18, 10, 19, 3, 20, 11, 21, 6, 22, 12, 23, 2, 24, 13, 25, 7, 26, 14, 25, 4, 27, 15, 28, 8, 29, 16, 30, 1, 31, 17, 32, 9, 33, 17, 34, 5, 35, 18, 36, 10, 33, 19, 37, 3, 38, 20, 39, 11, 40, 21, 41, 6, 42
Offset: 1

Views

Author

Antti Karttunen, Jan 31 2022

Keywords

Comments

Restricted growth sequence transform of the ordered triplet [A336158(n), A206787(n), A336651(n)].
For all i, j >= 1:
A003602(i) = A003602(j) => a(i) = a(j),
a(i) = a(j) => A336390(i) = A336390(j) => A336391(i) = A336391(j),
a(i) = a(j) => A347374(i) = A347374(j),
a(i) = a(j) => A351036(i) = A351036(j) => A113415(i) = A113415(j),
a(i) = a(j) => A351461(i) = A351461(j).
From Antti Karttunen, Nov 23 2023: (Start)
Conjectured to be equal to the lexicographically earliest infinite sequence such that b(i) = b(j) => A000593(i) = A000593(j), A336158(i) = A336158(j) and A336467(i) = A336467(j), for all i, j >= 1 (this was the original definition). In any case it holds that a(i) = a(j) => b(i) = b(j) for all i, j >= 1. See comment in A351461.
(End)

Crossrefs

Differs from A347374 for the first time at n=103, where a(103) = 48, while A347374(103) = 30.
Differs from A351035 for the first time at n=175, where a(175) = 80, while A351035(175) = 78.
Differs from A351036 for the first time at n=637, where a(637) = 272, while A351036(637) = 261.

Programs

  • PARI
    up_to = 65539;
    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; };
    A000265(n) = (n>>valuation(n,2));
    A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); };
    A336158(n) = A046523(A000265(n));
    A206787(n) = sumdiv(n, d, d*(d % 2)*issquarefree(d));
    A336651(n) = { my(f=factor(n)); prod(i=1, #f~, if(2==f[i,1],1,f[i,1]^(f[i,2]-1))); };
    Aux351040(n) = [A336158(n), A206787(n), A336651(n)];
    v351040 = rgs_transform(vector(up_to, n, Aux351040(n)));
    A351040(n) = v351040[n];

Extensions

Original definition moved to the comment section and replaced with a definition that is at least as encompassing, and conjectured to be equal to the original one. - Antti Karttunen, Nov 23 2023

A366881 Lexicographically earliest infinite sequence such that a(i) = a(j) => A206787(A163511(i)) = A206787(A163511(j)) and A336651(A163511(n)) = A336651(A163511(j)) for all i, j >= 0.

Original entry on oeis.org

1, 1, 1, 2, 1, 3, 2, 4, 1, 5, 3, 6, 2, 7, 4, 8, 1, 9, 5, 10, 3, 11, 6, 12, 2, 13, 7, 14, 4, 15, 8, 16, 1, 17, 9, 18, 5, 19, 10, 20, 3, 21, 11, 22, 6, 23, 12, 24, 2, 25, 13, 26, 7, 27, 14, 28, 4, 29, 15, 30, 8, 14, 16, 31, 1, 32, 17, 33, 9, 34, 18, 35, 5, 36, 19, 37, 10, 38, 20, 39, 3, 40, 21, 41, 11, 42, 22, 43, 6
Offset: 0

Views

Author

Antti Karttunen, Nov 04 2023

Keywords

Comments

Restricted growth sequence transform of the ordered pair [A206787(A163511(n)), A336651(A163511(n))].
Restricted growth sequence transform of sequence b(n) = A351461(A163511(n)).
For all i, j >= 0:
a(i) = a(j) => A324186(i) = A324186(j), (similarly for A366806)
a(i) = a(j) => A366885(i) = A366885(j). (similarly for A366886).

Crossrefs

Differs from A366806 for the first time at n=105, where a(105) = 52, while A366806(105) = 19.

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; };
    A163511(n) = if(!n, 1, my(p=2, t=1); while(n>1, if(!(n%2), (t*=p), p=nextprime(1+p)); n >>= 1); (t*p));
    A206787(n) = sumdiv(n, d, d*issquarefree(2*d));
    A336651(n) = { my(f=factor(n>>valuation(n,2))); prod(i=1, #f~, f[i,1]^(f[i,2]-1)); };
    A366881aux(n) = [A206787(A163511(n)), A336651(A163511(n))];
    v366881 = rgs_transform(vector(1+up_to,n,A366881aux(n-1)));
    A366881(n) = v366881[1+n];

Formula

For all n >= 1, a(n) = a(2*n) = a(A000265(n)).

A366891 Lexicographically earliest infinite sequence such that a(i) = a(j) => A365425(i) = A365425(j), A206787(A163511(i)) = A206787(A163511(j)) and A336651(A163511(n)) = A336651(A163511(j)) for all i, j >= 0.

Original entry on oeis.org

1, 1, 1, 2, 1, 3, 2, 4, 1, 5, 3, 6, 2, 7, 4, 8, 1, 9, 5, 10, 3, 11, 6, 12, 2, 13, 7, 14, 4, 15, 8, 16, 1, 17, 9, 18, 5, 19, 10, 20, 3, 21, 11, 22, 6, 23, 12, 24, 2, 25, 13, 26, 7, 27, 14, 28, 4, 29, 15, 30, 8, 14, 16, 31, 1, 32, 17, 33, 9, 34, 18, 35, 5, 36, 19, 37, 10, 38, 20, 39, 3, 40, 21, 41, 11, 42, 22, 43, 6, 44, 23
Offset: 0

Views

Author

Antti Karttunen, Nov 04 2023

Keywords

Comments

Restricted growth sequence transform of the triplet [A365425(n), A206787(A163511(n)), A336651(A163511(n))], and also by conjecture, of sequence b(n) = A351040(A163511(n)).
For all i, j >= 0:
a(i) = a(j) => A365395(i) = A365395(j),
a(i) = a(j) => A366874(i) = A366874(j),
a(i) = a(j) => A366881(i) = A366881(j).

Crossrefs

Differs from A366806 for the first time at n=105, where a(105) = 52, while A366806(105) = 19.
Differs from A366881 for the first time at n=511, where a(511) = 249, while A366881(511) = 7.

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; };
    A000265(n) = (n>>valuation(n,2));
    A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ From A046523
    A163511(n) = if(!n, 1, my(p=2, t=1); while(n>1, if(!(n%2), (t*=p), p=nextprime(1+p)); n >>= 1); (t*p));
    A365425(n) = A046523(A000265(A163511(n)));
    A206787(n) = sumdiv(n, d, d*issquarefree(2*d));
    A336651(n) = { my(f=factor(n>>valuation(n,2))); prod(i=1, #f~, f[i,1]^(f[i,2]-1)); };
    A366891aux(n) = [A365425(n), A206787(A163511(n)), A336651(A163511(n))];
    v366891 = rgs_transform(vector(1+up_to,n,A366891aux(n-1)));
    A366891(n) = v366891[1+n];

Formula

For all n >= 1, a(n) = a(2*n) = a(A000265(n)).

A048250 Sum of the squarefree divisors of n.

Original entry on oeis.org

1, 3, 4, 3, 6, 12, 8, 3, 4, 18, 12, 12, 14, 24, 24, 3, 18, 12, 20, 18, 32, 36, 24, 12, 6, 42, 4, 24, 30, 72, 32, 3, 48, 54, 48, 12, 38, 60, 56, 18, 42, 96, 44, 36, 24, 72, 48, 12, 8, 18, 72, 42, 54, 12, 72, 24, 80, 90, 60, 72, 62, 96, 32, 3, 84, 144, 68, 54, 96, 144, 72, 12, 74
Offset: 1

Views

Author

Keywords

Comments

Also sum of divisors of the squarefree kernel of n: a(n) = A000203(A007947(n)). - Reinhard Zumkeller, Jul 19 2002
The absolute values of the Dirichlet inverse of A001615. - R. J. Mathar, Dec 22 2010
Row sums of the triangle in A206778. - Reinhard Zumkeller, Feb 12 2012
Inverse Möbius transform of n * mu(n)^2 = |A055615(n)|. - Wesley Ivan Hurt, Jun 08 2023

Examples

			For n=1000, out of the 16 divisors, four are squarefree: {1,2,5,10}. Their sum is 18. Or, 1000 = 2^3*5^3 hence a(1000) = (2+1)*(5+1) = 18.
		

References

  • D. Suryanarayana, On the core of an integer, Indian J. Math. 14 (1972) 65-74.

Crossrefs

Sum of the k-th powers of the squarefree divisors of n for k=0..10: A034444 (k=0), this sequence (k=1), A351265 (k=2), A351266 (k=3), A351267 (k=4), A351268 (k=5), A351269 (k=6), A351270 (k=7), A351271 (k=8), A351272 (k=9), A351273 (k=10).
Cf. A240976 (tenth of Dgf at s=3).

Programs

  • Haskell
    a034448 = sum . a206778_row  -- Reinhard Zumkeller, Feb 12 2012
    
  • Maple
    A048250 := proc(n) local ans, i:ans := 1: for i from 1 to nops(ifactors(n)[ 2 ]) do ans := ans*(1+ifactors(n)[ 2 ][ i ] [ 1 ]): od: RETURN(ans) end:
    # alternative:
    seq(mul(1+p, p = numtheory:-factorset(n)), n=1..1000); # Robert Israel, Mar 18 2015
  • Mathematica
    sumOfSquareFreeDivisors[ n_ ] := Plus @@ Select[ Divisors[ n ], MoebiusMu[ # ] != 0 & ]; Table[ sumOfSquareFreeDivisors[ i ], {i, 85} ]
    Table[Total[Select[Divisors[n],SquareFreeQ]],{n,80}] (* Harvey P. Dale, Jan 25 2013 *)
    a[1] = 1; a[n_] := Times@@(1 + FactorInteger[n][[;;,1]]); Array[a, 100] (* Amiram Eldar, Dec 19 2018 *)
  • PARI
    a(n)=if(n<1,0,sumdiv(n,d,if(core(d)==d,d)))
    
  • PARI
    a(n)=if(n<1,0,direuler(p=2,n,(1+p*X)/(1-X))[n])
    
  • PARI
    a(n)=sumdiv(n,d,moebius(d)^2*d); \\ Joerg Arndt, Jul 06 2011
    
  • PARI
    a(n)=my(f=factor(n)); for(i=1,#f~,f[i,2]=1); sigma(f) \\ Charles R Greathouse IV, Sep 09 2014
    
  • Python
    from math import prod
    from sympy import primefactors
    def A048250(n): return prod(p+1 for p in primefactors(n)) # Chai Wah Wu, Apr 20 2023
  • Sage
    def A048250(n): return mul(map(lambda p: p+1, prime_divisors(n)))
    [A048250(n) for n in (1..73)]  # Peter Luschny, May 23 2013
    

Formula

If n = Product p_i^e_i, a(n) = Product (p_i + 1). - Vladeta Jovovic, Apr 19 2001
Dirichlet g.f.: zeta(s)*zeta(s-1)/zeta(2*s-2). - Michael Somos, Sep 08 2002
a(n) = Sum_{d|n} mu(d)^2*d = Sum_{d|n} |A055615(d)|. - Benoit Cloitre, Dec 09 2002
Pieter Moree (moree(AT)mpim-bonn.mpg.de), Feb 20 2004 can show that Sum_{n <= x} a(n) = x^2/2 + O(x*sqrt{x}) and adds: "As S. R. Finch pointed out to me, in Suryanarayana's paper this is proved under the Riemann hypothesis with error term O(x^{7/5+epsilon})".
a(n) = psi(rad(n)) = A001615(A007947(n)). - Enrique Pérez Herrero, Aug 24 2010
a(n) = rad(n)*psi(n)/n = A001615(n)*A007947(n)/n. - Enrique Pérez Herrero, Aug 31 2010
G.f.: Sum_{k>=1} mu(k)^2*k*x^k/(1 - x^k). - Ilya Gutkovskiy, Jan 03 2017
Lim_{n->oo} (1/n) * Sum_{k=1..n} a(k)/k = 1. - Amiram Eldar, Jun 10 2020
a(n) = Sum_{d divides n} mu(d)^2*core(d), where core(n) = A007913(n). - Peter Bala, Jan 24 2024

A065119 Numbers k such that the k-th cyclotomic polynomial is a trinomial.

Original entry on oeis.org

3, 6, 9, 12, 18, 24, 27, 36, 48, 54, 72, 81, 96, 108, 144, 162, 192, 216, 243, 288, 324, 384, 432, 486, 576, 648, 729, 768, 864, 972, 1152, 1296, 1458, 1536, 1728, 1944, 2187, 2304, 2592, 2916, 3072, 3456, 3888, 4374, 4608, 5184, 5832, 6144, 6561, 6912, 7776, 8748, 9216
Offset: 1

Views

Author

Len Smiley, Nov 12 2001

Keywords

Comments

Appears to be numbers of form 2^a * 3^b, a >= 0, b > 0. - Lekraj Beedassy, Sep 10 2004
This is true: see link "Cyclotomic trinomials". - Robert Israel, Jul 14 2015
3-smooth numbers (A003586) which are not powers of 2 (A000079). - Amiram Eldar, Nov 10 2020
These are the conjugates of semiprimes, where conjugation is A122111; or Heinz numbers of conjugates of length-2 partitions. - Gus Wiseman, Nov 09 2023
A multiplicative semigroup: if m and n are in the sequence, then so is m*n. - Antti Karttunen, Jul 13 2024

Examples

			The 54th cyclotomic polynomial is x^18 - x^9 + 1 which is trinomial, so 54 is in the sequence.
From _Gus Wiseman_, Nov 09 2023: (Start)
The terms and conjugate semiprimes, showing their respective Heinz partitions, begin:
    3: (2)              4: (1,1)
    6: (2,1)            6: (2,1)
    9: (2,2)            9: (2,2)
   12: (2,1,1)         10: (3,1)
   18: (2,2,1)         15: (3,2)
   24: (2,1,1,1)       14: (4,1)
   27: (2,2,2)         25: (3,3)
   36: (2,2,1,1)       21: (4,2)
   48: (2,1,1,1,1)     22: (5,1)
   54: (2,2,2,1)       35: (4,3)
   72: (2,2,1,1,1)     33: (5,2)
   81: (2,2,2,2)       49: (4,4)
   96: (2,1,1,1,1,1)   26: (6,1)
(End)
		

References

  • Jean-Marie De Koninck and Armel Mercier, 1001 Problèmes en Théorie Classique Des Nombres, Problem 733, pp. 74 and 310, Ellipses Paris, 2004.

Crossrefs

Differs at the 18th term from A063996.
For primes (A008578) we have conjugates A000079.
For triprimes (A014612) we have conjugates A080193.
A001358 lists semiprimes, squarefree A006881, complement A100959.

Programs

  • Maple
    with(numtheory): a := []; for m from 1 to 3000 do if nops([coeffs(cyclotomic(m,x))])=3 then a := [op(a),m] fi od; print(a);
  • Mathematica
    max = 5000; Sort[Flatten[Table[2^a 3^b, {a, 0, Floor[Log[2, max]]}, {b, Floor[Log[3, max/2^a]]}]]] (* Alonso del Arte, May 19 2016 *)
  • PARI
    isok(n)=my(vp = Vec(polcyclo(n))); sum(k=1, #vp, vp[k] != 0) == 3; \\ Michel Marcus, Jul 11 2015
    
  • PARI
    list(lim)=my(v=List(),N); for(n=1,logint(lim\1,3), N=3^n; while(N<=lim, listput(v,N); N<<=1)); Set(v) \\ Charles R Greathouse IV, Aug 07 2015

Formula

A206787(a(n)) = 4. - Reinhard Zumkeller, Feb 12 2012
a(n) = A033845(n)/2 = 3 * A003586(n). - Robert Israel, Jul 14 2015
Sum_{n>=1} 1/a(n) = 1. - Amiram Eldar, Nov 10 2020

Extensions

Offset set to 1 and more terms from Michel Marcus, Jul 11 2015

A336467 Fully multiplicative with a(2) = 1 and a(p) = A000265(p+1) for odd primes p, with A000265(k) giving the odd part of k.

Original entry on oeis.org

1, 1, 1, 1, 3, 1, 1, 1, 1, 3, 3, 1, 7, 1, 3, 1, 9, 1, 5, 3, 1, 3, 3, 1, 9, 7, 1, 1, 15, 3, 1, 1, 3, 9, 3, 1, 19, 5, 7, 3, 21, 1, 11, 3, 3, 3, 3, 1, 1, 9, 9, 7, 27, 1, 9, 1, 5, 15, 15, 3, 31, 1, 1, 1, 21, 3, 17, 9, 3, 3, 9, 1, 37, 19, 9, 5, 3, 7, 5, 3, 1, 21, 21, 1, 27, 11, 15, 3, 45, 3, 7, 3, 1, 3, 15, 1, 49, 1, 3, 9, 51, 9, 13, 7, 3
Offset: 1

Views

Author

Antti Karttunen, Jul 22 2020

Keywords

Comments

For the comment here, we extend the definition of the first kind of Cunningham chain (see Wikipedia-article) so that also isolated primes for which neither (p-1)/2 nor 2p+1 is a prime are considered to be in singular chains, that is, in chains of the length one. If we replace one or more instances of any particular odd prime factor p in n with any odd prime q of the same Cunningham chain, so that m = (q^k)*n / p^(e-k), where e is the exponent of p of n, and k <= e is the number of instances of p replaced with q, then it holds that a(m) = a(n), and by induction, the value stays invariant for any number of such replacements. Note also that A001222, but not necessarily A001221 will stay invariant in such changes.
For example, if some of the odd prime divisors p of n are Sophie Germain primes (in A005384), then replacing any of them with 2p+1 ("safe primes", i.e., the corresponding terms of A005385), gives a new number m, for which a(m) = a(n). And vice versa, the same is true for any safe prime factors > 5 of n (that are in A005385), then replacing any one of them with (p-1)/2 will not affect the result. For example, a(5*11*23*47) = a(11*11*23*23) = a(5^4) = a(11^4) = a(23^4) = 81, as 5, 11, 23 and 47 are in the same Cunningham chain of the first kind.

Crossrefs

Cf. also A335915, A336466 (similar sequences).

Programs

  • PARI
    A000265(n) = (n>>valuation(n,2));
    A336467(n) = { my(f=factor(n)); prod(k=1,#f~,if(2==f[k,1],1,(A000265(f[k,1]+1))^f[k,2])); };

Formula

For all n >= 1, A331410(a(n)) = A336921(n).
From Antti Karttunen, Nov 21 2023: (Start)
a(n) = A335915(n) / A336466(n).
a(1) = 1, and for n > 1, a(n) = A000265(A206787(n)) * a(A336651(n)).
(End)

A206778 Irregular triangle in which n-th row lists squarefree divisors (A005117) of n.

Original entry on oeis.org

1, 1, 2, 1, 3, 1, 2, 1, 5, 1, 2, 3, 6, 1, 7, 1, 2, 1, 3, 1, 2, 5, 10, 1, 11, 1, 2, 3, 6, 1, 13, 1, 2, 7, 14, 1, 3, 5, 15, 1, 2, 1, 17, 1, 2, 3, 6, 1, 19, 1, 2, 5, 10, 1, 3, 7, 21, 1, 2, 11, 22, 1, 23, 1, 2, 3, 6, 1, 5, 1, 2, 13, 26, 1, 3, 1, 2, 7, 14, 1, 29
Offset: 1

Views

Author

Reinhard Zumkeller, Feb 12 2012

Keywords

Examples

			Triangle begins:
.   1: [1]
.   2: [1, 2]
.   3: [1, 3]
.   4: [1, 2]
.   5: [1, 5]
.   6: [1, 2, 3, 6]
.   7: [1, 7]
.   8: [1, 2]
.   9: [1, 3]
.  10: [1, 2, 5, 10]
.  11: [1, 11]
.  12: [1, 2, 3, 6].
		

Crossrefs

Cf. A008966, A034444 (row lengths), A048250 (row sums), A206787; A077610.

Programs

  • Haskell
    a206778 n k = a206778_row n !! k
    a206778_row = filter ((== 1) . a008966) . a027750_row
    a206778_tabf = map a206778_row [1..]
    -- Reinhard Zumkeller, May 03 2013, Feb 12 2012
    
  • Maple
    A206778 := proc(n)
        local sqdvs ,nfac,d;
        sqdvs := {} ;
        nfac := ifactors(n)[2] ;
        for d in numtheory[divisors](n) do
            if issqrfree(d) then
                sqdvs := sqdvs union {d} ;
            end if;
        end do:
        sort(sqdvs) ;
    end proc:
    seq(op(A206778(n)),n=1..10) ; # R. J. Mathar, Mar 06 2023
  • Mathematica
    Flatten[Table[Select[Divisors[n],SquareFreeQ],{n,30}]] (* Harvey P. Dale, Apr 11 2012 *)
  • PARI
    row(n) = select(x -> issquarefree(x), divisors(n)); \\ Amiram Eldar, May 02 2025

A347385 Dedekind psi function applied to the odd part of n: a(n) = A001615(A000265(n)).

Original entry on oeis.org

1, 1, 4, 1, 6, 4, 8, 1, 12, 6, 12, 4, 14, 8, 24, 1, 18, 12, 20, 6, 32, 12, 24, 4, 30, 14, 36, 8, 30, 24, 32, 1, 48, 18, 48, 12, 38, 20, 56, 6, 42, 32, 44, 12, 72, 24, 48, 4, 56, 30, 72, 14, 54, 36, 72, 8, 80, 30, 60, 24, 62, 32, 96, 1, 84, 48, 68, 18, 96, 48, 72, 12, 74, 38, 120, 20, 96, 56, 80, 6, 108, 42, 84, 32, 108
Offset: 1

Views

Author

Antti Karttunen, Aug 31 2021

Keywords

Comments

Coincides with A000593 on A122132.

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := If[p == 2, 1, (p + 1)*p^(e - 1)]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Aug 31 2021 *)
  • PARI
    A347385(n) = if(1==n,n, my(f=factor(n>>valuation(n, 2))); prod(i=1, #f~, f[i, 1]^f[i, 2] + f[i, 1]^(f[i, 2]-1)));

Formula

Multiplicative with a(2^e) = 1, a(p^e) = (p+1)*p^(e-1) for all odd primes p.
a(n) = A001615(A000265(n)).
a(n) = A206787(n) * A336651(n). - Antti Karttunen, Feb 11 2022
Sum_{k=1..n} a(k) ~ c * n^2, where c = 4/Pi^2 = 0.405284... (A185199). - Amiram Eldar, Nov 19 2022
Dirichlet g.f.: (zeta(s)*zeta(s-1)/zeta(2*s))*(4^s-2^(s+1))/(4^s-1). - Amiram Eldar, Jan 04 2023
Showing 1-10 of 17 results. Next