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.

A219839 a(n) is the number of odd integers in 2..(n-1) that have a common factor (other than 1) with n.

Original entry on oeis.org

0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 2, 0, 1, 3, 0, 0, 3, 0, 2, 4, 1, 0, 4, 2, 1, 4, 2, 0, 7, 0, 0, 6, 1, 5, 6, 0, 1, 7, 4, 0, 9, 0, 2, 10, 1, 0, 8, 3, 5, 9, 2, 0, 9, 7, 4, 10, 1, 0, 14, 0, 1, 13, 0, 8, 13, 0, 2, 12, 11, 0, 12, 0, 1, 17, 2, 8, 15, 0, 8, 13, 1, 0, 18
Offset: 1

Views

Author

Lei Zhou, Nov 29 2012

Keywords

Comments

a(n) is also the number of linearly dependent diagonal/side length ratios R(n,k), in the regular n-gon. The following will explain this. In the regular n-gon inscribed in a circle the number of distinct diagonals including the side is floor(n/2). Not all of the corresponding length ratios R(n,k) = d(n,k)/d(n,1), k = 1..floor(n/2), with d(n,1) = s(n) (the length of the side), d(n,2) the length of the smallest diagonal, etc., are linearly independent because C(n,R(n,2)) = 0, where C is the minimal polynomial of R(n,2) = 2*cos(Pi/n) (see A187360) with degree delta(n) = A055034(n). Thus every ratio R(n,j), with j = delta(n)+1, ..., floor(n/2) can be expressed as a linear combination of the independent R(n,k), k=1, ..., delta(n). See the comment from Sep 21 2013 on A053121 for powers of R(n,2) (called there rho(N)). Therefore, a(n) = floor(n/2) - delta(n) is, for n>=2, the number of linearly dependent ratios R(n,k) in the regular n-gon. - Wolfdieter Lang, Sep 23 2013
From Wolfdieter Lang, Nov 23 2020: (Start)
This sequence gives the difference between the number of odd numbers in the smallest nonnegative residue system modulo n (called here RS(n)) and the smallest nonnegative restricted residue system (called here RRS(n), but RRS(1) = {1}, not {0}).
This sequence can be used to find sequence A111774 by recording the positions of the entries >= 1. See a W. Lang comment there, and also A337940, for the proof. Hence the complement of A111774, given in A174090, is given by the numbers m with a(m) = 0. (End)

Examples

			n=1: there is no odd number greater than 2 but smaller than 1-1=0, so a(1)=0.
Same for n=2,3.
n=4: 3 is the only odd number in 2..(4-1), and GCD(3,4)=1, so a(4)=0.
For any prime numbers and numbers in the form of 2^n, no odd number in 2..(n-1) has common factor with n, so a(p)=0 and a(2^n)=0, n>0.
n=6: 3,5 are odd numbers in 2..(6-1), and GCD(3,6)=3>1 and GCD(5,6)=1, so a(6)=1.
n=15: candidates are 3,5,7,9,11,13.  3, 5, and 9 have greater than 1 common factors with 15, so a(15)=3
From _Wolfdieter Lang_, Sep 23 2013: (Start)
Example n = 15 for a(n) = floor(n/2) - delta(n): 1, 3, 5, 7, 9, 11, 13 take out 1, 7, 9, 11, leaving 3, 5, 13. Therefore, a(15) = 7 - 4 = 3. See the formula above for delta.
In the regular 15-gon the 3 (= a(15)) diagonal/side ratios R(15, 5), R(15, 6) and R(15,7) can be expressed as linear combinations of the R(15,j), j=1..4.  See the n-gon comment above. (End)
From _Wolfdieter Lang_, Nov 23 2020: (Start)
n = 1: RS(1) = {0}, RRS(1) = {1}, hence a(1) = 0 - 1 = 0. Here RRS(1) is not {0}(standard) because delta(1) := 1 (the degree of minimal polynomial for 2*cos(Pi//1) = -2 which is x+2, see A187360).
n = 6: RS(6) = {0, 1, 2, 3, 4, 5} and RRS(6) = {1,5}, hence a(6) = 3 - 2 = 1, and A111774(1) = 6 = A337940(1, 1).
a(15) = 7 - 4 = 3, and A111774(6) = 15 = A337940(3, 3) = A337940(4, 1) (multiplicity 2 = A338428(6)). (End)
		

Crossrefs

Cf. A000010, A016035 (see 1st comment there), A004526, A055034, A111774, A174090, A190357, A337940, A338428.

Programs

Formula

a(n) = floor(n/2) - delta(n), with floor(n/2) = A004526 and delta(n) = A055034(n) = phi(2*n)/2, for n >= 2, with Euler's phi A000010. See the Aug 17 2011 comment on A055034. For n = 1 this would be -1, not 0, because delta(1) = 1. - Wolfdieter Lang, Sep 23 2013
Sum_{k=1..n} a(k) ~ c*n^2, where c = 1/4 - 2/Pi^2 = 0.04735763... (A190357). - Amiram Eldar, Feb 23 2025

A258211 Nonsquarefree numbers of the form 4*k + 2.

Original entry on oeis.org

18, 50, 54, 90, 98, 126, 150, 162, 198, 234, 242, 250, 270, 294, 306, 338, 342, 350, 378, 414, 450, 486, 490, 522, 550, 558, 578, 594, 630, 650, 666, 686, 702, 722, 726, 738, 750, 774, 810, 846, 850, 882, 918, 950, 954, 990, 1014, 1026, 1050, 1058, 1062, 1078, 1098, 1134, 1150
Offset: 1

Views

Author

Juri-Stepan Gerasimov, May 23 2015

Keywords

Comments

The asymptotic density of this sequence is 1/4 - 2/Pi^2 = 0.047357... (A190357) - Amiram Eldar, Feb 10 2021
From Peter Munn, Jan 20 2022: (Start)
Even numbers whose square part is odd (and nontrivial).
If m is in the sequence then every odd multiple of m is in the sequence.
Closed under the operation A059896(.,.).
(End)

Examples

			18 is in this sequence because 4 * 4 + 2 = 18 = 2 * 3^2.
		

Crossrefs

Intersection of A016825 and either A013929 or A335437.

Programs

  • Magma
    [n*4+2: n in [1..300] | not IsSquarefree(4*n+2)];
    
  • Maple
    remove(numtheory:-issqrfree, [4*i+2 $ i=0..1000]); # Robert Israel, May 27 2015
  • Mathematica
    Select [Range[300], ! SquareFreeQ[(4 # - 2)] &] 4 - 2 (* Vincenzo Librandi, May 24 2015 *)
  • PARI
    select(n->!issquarefree(n), vector(50,n,2*n+9))*2 \\ Charles R Greathouse IV, May 26 2015

Formula

a(n) = 2*A053850(n). - Charles R Greathouse IV, May 26 2015

A138610 Nonsquarefree numbers congruent to 3 mod 4.

Original entry on oeis.org

27, 63, 75, 99, 135, 147, 171, 175, 207, 243, 275, 279, 315, 343, 351, 363, 375, 387, 423, 459, 475, 495, 507, 531, 539, 567, 575, 603, 639, 675, 711, 735, 747, 775, 783, 819, 847, 855, 867, 875, 891, 927, 931, 963, 975, 999, 1035, 1071, 1075, 1083, 1107
Offset: 1

Views

Author

Zak Seidov, May 14 2008

Keywords

Comments

Or, terms in A004767 but not in A039957.
The asymptotic density of this sequence is 1/4 - 2/Pi^2 = 0.047357... (A190357) - Amiram Eldar, Feb 10 2021

Crossrefs

Programs

  • Magma
    [4*n+3: n in [0..280] | not IsSquarefree(4*n+3)];  // Bruno Berselli, Mar 04 2011
  • Maple
    remove(numtheory:-issqrfree, [seq(i,i=3..1200,4)]); # Robert Israel, Dec 18 2019
  • Mathematica
    <Harvey P. Dale, Aug 27 2024 *)

Formula

A013929 INTERSECT A004767.
Showing 1-3 of 3 results.