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

A195610 Smallest k such that A014657(n) divides 2^k + 1.

Original entry on oeis.org

0, 0, 1, 2, 3, 5, 6, 4, 9, 10, 9, 14, 5, 18, 10, 7, 26, 9, 29, 30, 6, 33, 27, 41, 24, 15, 50, 53, 18, 14, 55, 50, 7, 65, 34, 69, 14, 74, 26, 81, 78, 9, 86, 29, 89, 90, 18, 48, 98, 33, 10, 45, 105, 113, 38, 12, 81, 41, 25, 8, 26, 134, 46, 35, 47, 68, 146, 45
Offset: 1

Views

Author

Reinhard Zumkeller, Sep 21 2011

Keywords

Crossrefs

Programs

  • Haskell
    import Data.List (elemIndex)
    import Data.Maybe (catMaybes)
    a195610 n = a195610_list !! (n-1)
    a195610_list = catMaybes $ map k [1..] where
       k x = elemIndex 0 $ map (`mod` x) $ take (fromInteger x) a000051_list

Formula

2^a(n) + 1 = A337220(n)*A014657(n), n>=1. - Wolfdieter Lang, Aug 22 2020

A337220 a(n) = (2^A195610(n) + 1)/A014657(n), for n >= 1.

Original entry on oeis.org

2, 1, 1, 1, 1, 3, 5, 1, 27, 41, 19, 565, 1, 7085, 25, 3, 1266205, 9, 9099507, 17602325, 1, 128207979, 1657009, 26494256091, 172961, 331, 11147523830125, 84179432287299, 2405, 145, 297758653049289, 9007199254741, 1, 281629680514649643, 125400505, 4246732448623781667, 113
Offset: 1

Views

Author

Wolfdieter Lang, Aug 22 2020

Keywords

Crossrefs

A003558 Least number m > 0 such that 2^m == +-1 (mod 2n + 1).

Original entry on oeis.org

1, 1, 2, 3, 3, 5, 6, 4, 4, 9, 6, 11, 10, 9, 14, 5, 5, 12, 18, 12, 10, 7, 12, 23, 21, 8, 26, 20, 9, 29, 30, 6, 6, 33, 22, 35, 9, 20, 30, 39, 27, 41, 8, 28, 11, 12, 10, 36, 24, 15, 50, 51, 12, 53, 18, 36, 14, 44, 12, 24, 55, 20, 50, 7, 7, 65, 18, 36, 34, 69, 46
Offset: 0

Views

Author

Keywords

Comments

Multiplicative suborder of 2 (mod 2n+1) (or sord(2, 2n+1)).
This is called quasi-order of 2 mod b, with b = 2*n+1, for n >= 1, in the Hilton/Pederson reference.
For the complexity of computing this, see A002326.
Also, the order of the so-called "milk shuffle" of a deck of n cards, which maps cards (1,2,...,n) to (1,n,2,n-1,3,n-2,...). See the paper of Lévy. - Jeffrey Shallit, Jun 09 2019
It appears that under iteration of the base-n Kaprekar map, for even n > 2 (A165012, A165051, A165090, A151949 in bases 4, 6, 8, 10), almost all cycles are of length a(n/2 - 1); proved under the additional constraint that the cycle contains at least one element satisfying "number of digits (n-1) - number of digits 0 = o(total number of digits)". - Joseph Myers, Sep 05 2009
From Gary W. Adamson, Sep 20 2011: (Start)
a(n) can be determined by the cycle lengths of iterates using x^2 - 2, seed 2*cos(2*Pi/N); as shown in the A065941 comment of Sep 06 2011. The iterative map of the logistic equation 4x*(1-x) is likewise chaotic with the same cycle lengths but initiating the trajectory with sin^2(2*Pi/N), N = 2n+1 [Kappraff & Adamson, 2004]. Chaotic terms with the identical cycle lengths can be obtained by applying Newton's method to i = sqrt(-1) [Strang, also Kappraff and Adamson, 2003], resulting in the morphism for the cot(2*Pi/N) trajectory: (x^2-1)/2x. (End)
From Gary W. Adamson, Sep 11 2019: (Start)
Using x^2 - 2 with seed 2*cos(Pi/7), we obtain the period-three trajectory 1.8019377...-> 1.24697...-> -0.445041... For an odd prime N, the trajectory terms represent diagonal lengths of regular star 2N-gons, with edge the shortest value (0.445... in this case.) (Cf. "Polygons and Chaos", p. 9, Fig 4.) We can normalize such lengths by dividing through with the lowest value, giving 3 diagonals of the 14-gon: (1, 2.801937..., 4.048917...). Label the terms ranked in magnitude with odd integers (1, 3, 5), and we find that the diagonal lengths are in agreement with the diagonal formula (sin(j*Pi)/14)/(sin(Pi/14)), with j = (1,3,5). (End)
Roots of signed n-th row A054142 polynomials are chaotic with respect to the operation (-2, x^2), with cycle lengths a(n). Example: starting with a root to x^3 - 5x^2 + 6x - 1 = 0; (2 + 2*cos(2*Pi/N) = 3.24697...); we obtain the trajectory (3.24697...-> 1.55495...-> 0.198062...); the roots to the polynomial with cycle length 3 matching a(3) = 3. - Gary W. Adamson, Sep 21 2011
From Juhani Heino, Oct 26 2015: (Start)
Start a sequence with numbers 1 and n. For next numbers, add previous numbers going backwards until the sum is even. Then the new number is sum/2. I conjecture that the sequence returns to 1,n and a(n) is the cycle length.
For example:
1,7,4,2,1,7,... so a(7) = 4.
1,6,3,5,4,2,1,6,... so a(6) = 6. (End)
From Juhani Heino, Nov 06 2015: (Start)
Proof of the above conjecture: Let n = -1/2; thus 2n + 1 = 0, so operations are performed mod (2n + 1). When the member is even, it is divided by 2. When it is odd, multiply by n, so effectively divide by -2. This is all well-defined in the sense that new members m are 1 <= m <= n. Now see what happens starting from an odd member m. The next member is -m/2. As long as there are even members, divide by 2 and end up with an odd -m/(2^k). Now add all the members starting with m. The sum is m/(2^k). It's divided by 2, so the next member is m/(2^(k+1)). That is the same as (-m/(2^k))/(-2), as with the definition.
So actually start from 1 and always divide by 2, although the sign sometimes changes. Eventually 1 is reached again. The chain can be traversed backwards and then 2^(cycle length) == +-1 (mod 2n + 1).
To conclude, we take care of a(0): sequence 1,0 continues with zeros and never returns to 1. So let us declare that cycle length 0 means unavailable. (End)
From Gary W. Adamson, Aug 20 2019: (Start)
Terms in the sequence can be obtained by applying the doubling sequence mod (2n + 1), then counting the terms until the next term is == +1 (mod 2n + 1). Example: given 25, the trajectory is (1, 2, 4, 8, 16, 7, 14, 3, 6, 12).
The cycle ends since the next term is 24 == -1 (mod 25) and has a period of 10. (End)
From Gary W. Adamson, Sep 04 2019: (Start)
Conjecture of Kappraff and Adamson in "Polygons and Chaos", p. 13 Section 7, "Chaos and Number": Given the cycle length for N = 2n + 1, the same cycle length is present in bases 4, 9, 16, 25, ..., m^2, for the expansion of 1/N.
Examples: The cycle length for 7 is 3, likewise for 1/7 in base 4: 0.021021021.... In base 9 the expansion of 1/7 is 0.125125125... Check: The first few terms are 1/9 + 2/81 + 5/729 = 104/279 = 0.1426611... (close to 1/7 = 0.142857...). (End)
From Gary W. Adamson, Sep 24 2019: (Start)
An exception to the rule for 1/N in bases m^2: (when N divides m^2 as in 1/7 in base 49, = 7/49, rational). When all terms in the cycle are the same, the identity reduces to 1/N in (some bases) = .a, a, a, .... The minimal values of "a" for 1/N are provided as examples, with the generalization 1/N in base (N-1)^2 = .a, a, a, ... for N odd:
1/3 in base 4 = .1, 1, 1, ...
1/5 in base 16 = .3, 3, 3, ...
1/7 in base 36 = .5, 5, 5, ...
1/9 in base 64 = .7, 7, 7, ...
1/11 in base 100 = .9, 9, 9, ... (Check: the first three terms are 9/100 +9/(100^2) + 9/(100^3) = 0.090909 where 1/11 = 0.09090909...). (End)
For N = 2n+1, the corresponding entry is equal to the degree of the polynomial for N shown in (Lang, Table 2, p. 46). As shown, x^3 - 3x - 1 is the minimal polynomial for N = 9, with roots (1.87938..., -1.53208..., 0.347296...); matching the (abs) values of the 2*cos(Pi/9) trajectory using x^2 - 2. Thus, a(4) = 3. If N is prime, the polynomials shown in Table 2 are the same as those for the same N in A065941. If different, the minimal polynomials shown in Table 2 are factors of those in A065941. - Gary W. Adamson, Oct 01 2019
The terms in the 2*cos(Pi/N) trajectory (roots to the minimal polynomials in A187360 and (Lang)), are quickly obtained from the doubling trajectory (mod N) by using the operation L(m) 2*cos(x)--> 2*cos(m*x), where L(2), the second degree Lucas polynomial (A034807) is x^2 - 2. Relating to the heptagon and using seed 2*cos(Pi/7), we obtain the trajectory 1.8019..., 1.24697..., and 0.445041....; cyclic with period 3. All such roots can be derived from the N-th roots of Unity and can be mapped on the Vesica Piscis. Given the roots of Unity (Polar 1Angle(k*2*Pi/N), k = 1, 2, ..., (N-1)/2) the Vesica Piscis maps these points on the left (L) circle to the (R) circle by adding 1A(0) or (a + b*I) = (1 + 0i). But this operation is the same as vector addition in which the resultant vector is 1 + 1A(k*(2*Pi/N)). Example: given the radius at 2*Pi/7 on the left circle, this maps to (1 + 1A(2*Pi/7)) on the right circle; or 1A(2*Pi/7) --> (1.8019377...A(Pi/7). Similarly, 1 + 1A((2)*2*Pi/7)) maps to (1.24697...A (2*Pi/7); and 1 + 1A(3*2*Pi/7) maps to (.0445041...A(3*Pi/7). - Gary W. Adamson, Oct 23 2019
From Gary W. Adamson, Dec 01 2021: (Start)
As to segregating the two sets: (A014659 terms are those N = (2*n+1), N divides (2^m - 1), and (A014657 terms are those N that divide (2^m + 1)); it appears that the following criteria apply: Given IcoS(N, 1) (cf. Lang link "On the Equivalence...", p. 16, Definition 20), if the number of odd terms is odd, then N belongs to A014659, otherwise A014657. In IcoS(11, 1): (1, 2, 4, 3, 5), three odd terms indicate that 11 is a term in A014657. IcoS(15, 1) has the orbit (1, 2, 4, 7) with two odd terms indicating that 15 is a term in A014659.
It appears that if sin(2^m * Pi/N) has a negative sign, then N is in A014659; otherwise N is in A014657. With N = 15, m is 4 and sin(16 * Pi/15) is -0.2079116... If N is 11, m is 5 and sin(32 * Pi/11) is 0.2817325. (End)
On the iterative map using x^2 - 2, (Devaney, p. 126) states that we must find the function that takes 2*cos(Pi) -> 2*cos(2*Pi). "However, we may write 2*cos(2*Pi) = 2*(2*cos^2(Pi) - 1) = (2*cos(Pi))^2 - 2. So the required function is x^2 - 2." On the period 3 implies chaos theorem of James Yorke and T.Y. Li, proved in 1975; Devaney (p. 133) states that if F is continuous and we find a cycle of period 3, there are infinitely many other cycles for this map with every possible period. Check: The x^2 - 2 orbit for 7 has a period of 3, so this entry has periodic points of all other periods. - Gary W. Adamson, Jan 04 2023
It appears that a(n) is the length of the cycle starting at 2/(2*n+1) for the map x->1 - abs(2*x-1). - Michel Marcus, Jul 16 2025

Examples

			a(3) = 3 since f(x) = x^2 - 2 has a period of 3 using seed 2*cos(2*Pi/7), where 7 = 2*3 + 1.
a(15) = 5 since the iterative map of the logistic equation 4x*(1-x) has a period 5 using seed sin^2(2*Pi)/N; N = 31 = 2*15 + 1.
		

References

  • Peter Hilton and Jean Pedersen, A Mathematical Tapestry: Demonstrating the Beautiful Unity of Mathematics, Cambridge University Press, 2010, pp. 261-264.
  • Carl Schick, Trigonometrie und unterhaltsame Zahlentheorie, Bokos Druck, Zürich, 2003 (ISBN 3-9522917-0-6).
  • Robert L. Devaney, A First Course in Chaotic Dynamical Systems, Theory and Experiment; Perseus Books Publishing, 1992, pp. 121-126.

Crossrefs

Cf. A054142, A065941, A085478, A160657, A179480, A135303 (coach numbers), A216371 (odd primes with one coach), A000215 (Fermat numbers).
A216066 is an essentially identical sequence apart from the offset.
Cf. A329593, A332433 (signs).

Programs

  • Maple
    A003558 := proc(n)
        local m,mo ;
        if n = 0 then
            return 0 ;
        end if;
        for m from 1 do
            mo := modp(2^m,2*n+1) ;
            if mo in {1,2*n} then
                return m;
            end if;
        end do:
    end proc:
    seq(A003558(n),n=0..20) ; # R. J. Mathar, Dec 01 2014
    f:= proc(n) local t;
          t:= numtheory:-mlog(-1,2,n);
          if t = FAIL then numtheory:-order(2,n) else t fi
    end proc:
    0, seq(f(2*k+1),k=1..1000); # Robert Israel, Oct 26 2015
  • Mathematica
    Suborder[a_,n_]:=If[n>1&&GCD[a,n]==1,Min[MultiplicativeOrder[a,n,{-1,1}]],0];
    Join[{1},Table[Suborder[2,2n+1],{n,100}]] (* T. D. Noe, Aug 02 2006 *) (* revised by Vincenzo Librandi, Apr 11 2020 *)
  • PARI
    a(n) = {m=1; while(m, if( (2^m) % (2*n+1) == 1 || (2^m) % (2*n+1) == 2*n, return(m)); m++)} \\ Altug Alkan, Nov 06 2015
    
  • PARI
    isok(m, n) = my(md = Mod(2, 2*n+1)^m); (md==1) || (md==-1);
    A003558(n) = my(m=1); while(!isok(m,n) , m++); m; \\ Michel Marcus, May 06 2020
    
  • Python
    def A003558(n):
        m, k = 1, 2 % (c:=(r:=n<<1)+1)
        while not (k==1 or k==r):
            k = 2*k%c
            m += 1
        return m # Chai Wah Wu, Oct 09 2023

Formula

a(n) = log_2(A160657(n) + 2) - 1. - Nathaniel Johnston, May 22 2009
a(n-1) = card {cos((2^k)*Pi/(2*n-1)): k in N} for n >= 1 (see A216066, an essentially identical sequence, for more information). - Roman Witula, Sep 01 2012
a(n) <= n. - Charles R Greathouse IV, Sep 15 2012 [For n >= 1]
a(n) = min{k > 0 | q_k = q_0} where q_0 = 1 and q_k = |2*n+1 - 2*q_{k-1}| (cf. [Schick, p. 4]; q_k=1 for n=1; q_k=A010684(k) for n=2; q_k=A130794(k) for n=3; q_k=|A154870(k-1)| for n=4; q_k=|A135449(k)| for n=5.) - Jonathan Skowera, Jun 29 2013
2^(a(n)) == A332433(n) (mod (2*n+1)), and (2^(a(n)) - A332433(n))/(2*n+1) = A329593(n), for n >= 0. - Wolfdieter Lang, Apr 09 2020

Extensions

More terms from Harry J. Smith, Feb 11 2005
Entry revised by N. J. A. Sloane, Aug 02 2006 and again Dec 10 2017

A232624 Coefficient array for the minimal polynomials of 2*cos(2*Pi/n) for n >= 1.

Original entry on oeis.org

-2, 1, 2, 1, 1, 1, 0, 1, -1, 1, 1, -1, 1, -1, -2, 1, 1, -2, 0, 1, 1, -3, 0, 1, -1, -1, 1, 1, 3, -3, -4, 1, 1, -3, 0, 1, -1, 3, 6, -4, -5, 1, 1, 1, -2, -1, 1, 1, 4, -4, -1, 1, 2, 0, -4, 0, 1, 1, -4, -10, 10, 15, -6, -7, 1, 1, -1, -3, 0, 1, 1, 5, -10, -20, 15, 21, -7, -8, 1, 1, 5, 0, -5, 0, 1, 1, -8, 8, 6, -6, -1, 1, -1, 3, 3, -4, -1, 1
Offset: 1

Views

Author

Wolfdieter Lang, Nov 28 2013

Keywords

Comments

The length of row n is deg(n) + 1, n >= 1, with the degree deg(1) = deg(2) = 1, and deg(n) = phi(n)/2 = A023022(n) for n >= 3. That is: 2, 2, 2, 2, 3, 2, 4, 3, 4, 3, 6, 3, 7, 4, 5, 5, 9, 4, 10, 5, ...
2*cos(2*Pi/n) = R(2, rho(n)) = -2 + rho(n)^2, with rho(n) = 2*cos(Pi/n) and the monic Chebyshev T-polynomials R(n, x), n>=1, with coefficient table A127672. For even n 2*cos(2*Pi/n) becomes rho(n/2). Therefore, 2*cos(2*Pi/n) is an integer in the algebraic number field Q(rho(n/2)) or Q(rho(n)) if n is even or odd, respectively. The degree deg(n) of the minimal polynomials, call them MPR2(n, x), is delta(n/2) or delta(n) for even or odd n, respectively, with delta(n) = A055034(n). This becomes deg(n) as given above.
These minimal polynomials are C(n/2, x) if n is even, with C(k, x) the minimal polynomials of rho(k) given in A187360.
For odd n the known zeros of C(n, x) are rho(n) and its conjugates, call them rho(n;j), j=1, 2, ..., delta(n), with rho(n;1) = rho(n). These conjugates can be written in the power basis of Q(rho(2*l+1)), l >= 1. See the link to the Q(2cos(Pi/n)) paper in A187360, and there Table 4. Then the (monic) minimal polynomial MPR2(2*l+1, x) = Product_{j=1..delta(2*l+1)} (x - (-2 + rho(2*l+1;j)^2)), l >= 0. After expansion all powers of rho(2*l+1) not smaller than delta(2*l+1) are reduced with the help of C(2*l+1,rho(2*l+1)) = 0, leading automatically to integer coefficients (without using the trigonometric version of rho(2*l+1)).
Compare the present minimal polynomials with the (non-monic) minimal polynomials of cos(2*Pi/n) given in an Artur Jasinski comment from Oct 28 2008 on A023022.
The present monic integer minimal polynomials of 2*cos(2*Pi/n), called MPR2(n, x), are related to the non-monic integer minimal polynomials of 2*cos(2*Pi/n) of A181877, called there psi(n, x) by MPR2(n, x) = psi(n, x/2). See Table 5 of the Wolfdieter Lang link given there. - Wolfdieter Lang, Nov 29 2013
The present minimal polynomials MPR2(n, x) are C(n/2, x) if n is even (see above) and (-1)^degC(n)*C(n, -x) if n is odd, with the C polynomials from A187360 of degree degC(n) = A055034(n). Note that degC(2*k+1) = deg(2*k+1) = A023022(2*k+1), k >= 0. - Wolfdieter Lang, Apr 12 2018
Let {U(n, x)} be defined as: U(0, x) = 0, U(1, x) = 1, U(n, x) = x*U(n-1, x) - U(n-2, x) for n >= 2, then U(n, x) = Product_{k|2n, k>=3} MPR2(k, x) for n > 0, because U(n, x) = Product_{m=1..n-1} (x - 2*cos(Pi*m/n)) for n > 0. - Jianing Song, Jul 08 2019
Conjecture: For odd n > 1, the term of the highest degree of (MPR2(2n, x) - MPR2(n, x))/2 is (-1)^omega(n) * x^(phi(n)/2-n/rad(n)) = A076479(n) * x^(A023022(n)-A003557(n)). For example, for n = 15, (MPR2(30, x) - MPR2(15, x))/2 = x^3 - 4x; for n = 105, (MPR2(210, x) - MPR2(105, x))/2 = -x^23 + ...; for n = 225, (MPR2(450, x) - MPR2(225, x))/2 = x^45 + ... If this is true, then for odd n > 1, a(n,A023022(n)-k) = a(2n,A023022(n)-k) = 0 for k = 1, 3, ..., A003557(n)-2; a(n,A023022(n)-A003557(n)) = -A076479(n) and a(2n,A023022(n)-A003557(n)) = A076479(n). - Jianing Song, Jul 11 2019
Conjecture: Let MPR2(n, x) equal the odd indexed (n) monic polynomial. If the number of roots with negative signs is even, then n is a term in A014659. Example: n = 7 for x^3 + x^2 - 2x - 1, having two negative roots, (-445041..., and -1.801937...). Two is even so the integer 7 is in A014659. n = 9 for the polynomial x^3 - 3x + 1, with one negative root, (-1.87938). The term 9 is in A014657. - Gary W. Adamson, Oct 20 2021
From Gary W. Adamson, Nov 30 2021 (Start)
Given the first (phi(n))/2 terms for odd n, the number of even terms in the set is equal to the number of positive roots in MPR2(n, x). The number of odd terms is equal to the number of negative roots in MPR2(n, x). For n = 11, (phi(11))/2 = 5, and the set is (1, 2, 3, 4, 5); having two even and three odd terms.
Given MPR2(11, x) = x^5 + x^4 - 4x^3 - 3x^2 + 3x + 1, there are two roots with positive signs: 1.682508..., and .830830...; and three roots with negative signs: -1.918985..., -1.309921..., and -.284629....Using the Descartes' rule for signs, MPR2(11, x) has coefficients signed (+ + - - + +); having two sign changes indicating two positive roots. With all real roots there are three (= 5 - 2) roots signed negative. (End)

Examples

			The table a(n,m) begins:
n\m   0   1    2    3    4    5   6   7   8   9 ...
1:   -2   1
2:    2   1
3:    1   1
4:    0   1
5:   -1   1    1
6:   -1   1
7:   -1  -2    1    1
8:   -2   0    1
9:    1  -3    0    1
10:  -1  -1    1
11:   1   3   -3   -4    1    1
12:  -3   0    1
13:  -1   3    6   -4   -5    1   1
14:   1  -2   -1    1
15:   1   4   -4   -1    1
16:   2   0   -4    0    1
17:   1  -4  -10   10   15   -6  -7   1   1
18:  -1  -3    0    1
19:   1   5  -10  -20   15   21  -7  -8   1   1
20:   5   0   -5    0    1
...
MPR2(14, x) = C(7, x) = 1  - 2*x  - x^2  + x^3.
MPR2(7, x) = (x - (-2 + z^2))*(x - (-2 + (-1 - z + z^2)^2))*
  (x - (-2 + (2 - z^2)^2)), with z = rho(7). Expanded and reduced with C(7, z) = 0 this becomes finally MPR2(7, x) = -1 - 2*x + x^2 + x^3.
MPR2(7, x) = -C(7, -x). - _Wolfdieter Lang_, Apr 12 2018
		

Crossrefs

Cf. A023022 (degree), A055034, A187360 (C polynomials).
Cf. A181877, A181875/A181876. - Wolfdieter Lang, Nov 29 2013
Cf. A065941.
Cf. A003558.

Programs

  • Mathematica
    ro[n_] := (MPR2 = CoefficientList[p = MinimalPolynomial[2*Cos[2*(Pi/n)], x], x]; MPR2); Flatten[Table[ro[n], {n, 30}]] (* Jianing Song, Jul 09 2019 *)

Formula

a(n,m) = [x^m] MPR2(n, x), n >= 1, m=0, 1, ..., deg(n), with MPR2(n, x) the (monic) minimal polynomials of 2*cos(2*Pi/n), explained in a comment above. The degree is deg(1) = deg(2) = 1, deg(n) = phi(n)/2 = A023022(n), n >= 3 (phi is the Euler totient function A000010).
From Jianing Song, Jul 09 2019: (Start)
MPR2(n, x) = Product_{0<=m<=n/2, gcd(m, n)=1} (x - 2*cos(2*Pi*m/n)).
If 4 divides n, then MPR2(n, x) = Product_{k|(n/2)} U((n/2)/k, x)^mu(k), where U(n, x) is the polynomial defined in comment and mu = A008683. For odd n, MPR2(n, x)*MPR2(2n, x) = Product_{k|n} U(n/k, x)^mu(k).
If 4 divides n and n > 4, then a(n,2k+1) = 0, that is, MPR2(n, x) contains even powers of x only.
For odd n > 1, a(2n,k) = a(n,k)*(-1)^(A023022(n)-k). (End)

A014659 Odd numbers that do not divide 2^k + 1 for any k >= 1.

Original entry on oeis.org

7, 15, 21, 23, 31, 35, 39, 45, 47, 49, 51, 55, 63, 69, 71, 73, 75, 77, 79, 85, 87, 89, 91, 93, 95, 103, 105, 111, 115, 117, 119, 123, 127, 133, 135, 141, 143, 147, 151, 153, 155, 159, 161, 165, 167, 175, 183, 187, 189, 191, 195, 199, 203, 207, 213, 215, 217, 219
Offset: 1

Views

Author

Keywords

Comments

This is the subset of odd integers > 1 as (2*n - 1) in A179480 such that A179480(n) is even. Example: A179480(18) = 6, even; corresponding to (2*18 - 1), 35. Then 35 is in A014659. A014657 is the subset of odd terms > 1 corresponding to odd terms in A179480. - Gary W. Adamson, Aug 20 2012
From Wolfdieter Lang, Aug 22 2020: (Start)
These odd numbers are the moduli named 2*n+1 in the definition of A003558(n), for n >= 1, for which the + sign applies. The signs in the definition of A003558 are given in A332433.
These are the odd numbers N >= 3 for which A003558((N-1)/2) = A002326((N+1)/2), the period length P(N) of the cycles {2^k (mod N)}_{k=0}^(P(N)-1). Compare the periods given in A201908((N+1)/2, k). (End)

Crossrefs

Cf. A014657, numbers that divide 2^k + 1 for some k.

Extensions

More terms from Don Reble, Nov 03 2001

A137605 Consider the sequence: b(0) = n, and for k >= 1, b(k) = b(k-1)/2 if b(k-1) is even, otherwise b(k) = n - (b(k-1)+1)/2. Then a(n) = m, where m is the smallest index such that b(m) = 1.

Original entry on oeis.org

0, 1, 1, 2, 2, 4, 5, 3, 3, 8, 5, 10, 9, 8, 13, 4, 4, 11, 17, 11, 9, 6, 11, 22, 20, 7, 25, 19, 8, 28, 29, 5, 5, 32, 21, 34, 8, 19, 29, 38, 26, 40, 7, 27, 10, 11, 9, 35, 23, 14, 49, 50, 11, 52, 17, 35, 13, 43, 11, 23, 54, 19, 49, 6, 6, 64, 17, 35, 33, 68, 45, 59, 13, 41, 73, 14, 23, 19, 25
Offset: 1

Views

Author

Yasutoshi Kohmoto, Apr 23 2008

Keywords

Comments

The first occurrence of the numbers 0, 1, 2, 3, 4, ... is at indices 1, 2, 4, 8, 6, 7, 22, 26, 10, 13, 12, 18, 1366, 15, 50, 386, ... - Robert G. Wilson v, May 15 2008

Examples

			6->3->4->2->1. So a(6)=4.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := Block[{lst = {n}, a}, While[a = lst[[ -1]]; a != 1, If[EvenQ@a, AppendTo[lst, a/2], AppendTo[lst, lst[[1]] - (a + 1)/2]]]; Length@ lst - 1]; Array[f, 79] (* Robert G. Wilson v, May 15 2008 *)

Formula

For n>2, if 2n-1 is in A014657, then a(n) = A002326(n-1)/2 - 1, otherwise a(n) = A002326(n-1) - 1. In particular, if A002326(n-1) is odd, then a(n) = A002326(n-1) - 1. - Max Alekseyev, May 21 2008, Dec 09 2017
For n>2, a(n) = A003558(n-1) - 1. - Joerg Arndt, Sep 12 2013

Extensions

More terms from Robert G. Wilson v, May 15 2008
Edited by Max Alekseyev, Dec 09 2017

A195470 Number of numbers k with 0 <= k < n such that 2^k + 1 is multiple of n.

Original entry on oeis.org

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

Views

Author

Reinhard Zumkeller, Sep 21 2011

Keywords

Comments

a(A014657(n)) > 0; for n > 1: a(A014661(n)) = 0.

Examples

			a(1)=#{0}=1, (2^0 + 1) mod 1;
a(17) = #{4, 12} = 2, (2^4 + 1) mod 17 = (2^12 + 1) mod 17 = 0;
a(18) = #{} = 0;
a(19) = #{9} = 1, (2^9 + 1) mod 19 = 0.
		

Crossrefs

Programs

  • Haskell
    a195470 n = length $ filter ((== 0) . (`mod` n)) $
                           take (fromInteger n) a000051_list
  • Mathematica
    nn = 100; pwrs = 2^Range[0, nn] + 1; Table[cnt = 0; Do[If[Mod[pwrs[[i]], n] == 0, cnt++], {i, n}]; cnt, {n, nn}] (* T. D. Noe, Sep 30 2011 *)

A014661 Numbers that do not divide 2^k + 1 for any k>0.

Original entry on oeis.org

2, 4, 6, 7, 8, 10, 12, 14, 15, 16, 18, 20, 21, 22, 23, 24, 26, 28, 30, 31, 32, 34, 35, 36, 38, 39, 40, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 58, 60, 62, 63, 64, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 82, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94
Offset: 1

Views

Author

Keywords

Comments

A195470(a(n)) = 0 for n > 1. [Reinhard Zumkeller, Sep 21 2011]

References

  • P. Moree, Appendix to V. Pless et al., Cyclic Self-Dual Z_4 Codes, Finite Fields Applic., vol. 3 pp. 48-69, 1997.

Crossrefs

Cf. A014657.
Cf. A000051.

Programs

  • Haskell
    import Data.List (elemIndices)
    a014661 n = a014661_list !! (n-1)
    a014661_list = 2 : map (+ 1) (elemIndices 0 $ map a195470 [1..])
    -- Reinhard Zumkeller, Sep 21 2011
  • Mathematica
    divQ[n_] := For[k = 1, k <= n, k++, If[Divisible[2^k + 1, n], Return[True], If[k == n, Return[False]]]]; Select[Range[100], !divQ[#]& ] (* Jean-François Alcover, Jun 18 2012 *)
    dndQ[n_]:=NoneTrue[2^Range[n]+1,Divisible[#,n]&]; Select[Range[100],dndQ] (* The program uses the NoneTrue function from Mathematica version 10 *) (* Harvey P. Dale, Feb 10 2015 *)

Extensions

More terms from Henry Bottomley, May 19 2000

A043292 Numbers that divide 10^k + 1 for some k.

Original entry on oeis.org

1, 2, 7, 11, 13, 17, 19, 23, 29, 47, 49, 59, 61, 73, 77, 89, 91, 97, 101, 103, 109, 113, 121, 127, 131, 133, 137, 139, 143, 149, 157, 161, 167, 169, 179, 181, 193, 197, 209, 211, 223, 229, 233, 241, 247, 251, 253, 257, 263, 269, 281, 289, 293, 299, 313, 329
Offset: 1

Views

Author

Vladeta Jovovic, Apr 04 2002

Keywords

Crossrefs

Odd primes in this sequence are A028416.

Programs

  • Maple
    filter:= n -> traperror(NumberTheory:-ModularLog(-1,10,n)) <> "no solutions exist":
    filter(2):= true:
    select(filter, [$1..500]); # Robert Israel, Feb 11 2023

A296244 Odd numbers k such that A007733(k) is even but 2^x == -1 (mod k) is insoluble.

Original entry on oeis.org

15, 21, 35, 39, 45, 51, 55, 63, 69, 75, 77, 85, 87, 91, 93, 95, 105, 111, 115, 117, 119, 123, 133, 135, 141, 143, 147, 153, 155, 159, 165, 175, 183, 187, 189, 195, 203, 207, 213, 215, 219, 221, 225, 231, 235, 237, 245, 247, 253, 255, 259, 261, 267, 273, 275, 279, 285, 287
Offset: 1

Views

Author

Max Alekseyev, Dec 09 2017

Keywords

Crossrefs

Set difference of A296243 and A014657.
Showing 1-10 of 11 results. Next