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-6 of 6 results.

A090129 Smallest exponent such that -1 + 3^a(n) is divisible by 2^n.

Original entry on oeis.org

1, 2, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648, 4294967296, 8589934592, 17179869184
Offset: 1

Views

Author

Labos Elemer and Ralf Stephan, Jan 19 2004

Keywords

Comments

A131577 and A011782 are companions, A131577(n) + A011782(n) = 2^n, (and differences each other). - Paul Curtz, Jan 18 2009
A090127 with offset 0: (1, 2, 2, 4, 8, ...) = A(x) / A(x^2), when A(x) = (1 + 2x + 4x^2 + 8x^3 + ...). - Gary W. Adamson, Feb 20 2010
From Wolfdieter Lang, Apr 18 2012: (Start)
a(n) is the order of 3 modulo 2^n. For n=1 and 2 this is obviously 1 and 2, respectively, and for n >= 3 it is 2^(n-2).
For a proof see, e.g., the Graeme McRae link under A068531, the section 'A Different Approach', proposed by Alexander Monnas, the first part, where the result from the expansion of (4-1)^(2^(k-2)) holds only for k >= 3. See also the Charles R Greathouse IV program below where this result has been used.
This means that the cycle generated by 3, taken modulo 2^n, has length a(n), and that 3 is not a primitive root modulo 2^n, if n >= 3 (because Euler's phi(2^n) = 2^(n-1), n >= 1, see A000010).
(End)
Let r(x) = (1 + 2x + 2x^2 + 4x^3 + ...). Then (1 + 2x + 4x^2 + 8x^3 + ...) = (r(x) * r(x^2) * r(x)^4 * r(x^8) * ...). - Gary W. Adamson, Sep 13 2016

Examples

			a(1) = 1 since -1 + 3 = 2 is divisible by 2^1;
a(2) = a(3) = 2 since -1 + 9 = 8 is divisible by 4 = 2^2 and also by 8 = 2^3;
a(5) = 8 since -1 + 6561 = 6560 = 32*205 is divisible by 2^5.
From _Wolfdieter Lang_, Apr 18 2012: (Start)
n=3: the order of 3 (mod 8) is a(3)=2 because the cycle generated by 3 is [3, 3^2==1 (mod 8)].
n=5: a(5) = 2^3 = 8 because the cycle generated by 3 is [3^1=3, 3^2=9, 3^3=27, 17, 19, 25, 11, 1] (mod 32).
  The multiplicative group mod 32 is non-cyclic (see A033949(10)) with the additional four cycles  [5, 25, 29, 17, 21, 9, 13, 1], [7, 17, 23, 1], [15, 1], and [31, 1]. This is the cycle structure of the (Abelian) group Z_8 x Z_2 (see one of the cycle graphs shown in the Wikipedia link 'List of small groups' for the order phi(32)=16, given under A192005).
(End)
		

Crossrefs

Essentially the same as A000079.

Programs

  • Mathematica
    t=Table[Part[Flatten[FactorInteger[ -1+3^(n)]], 2], {n, 1, 130}] Table[Min[Flatten[Position[t, j]]], {j, 1, 10}]
    Join[{1,2},2^Range[30]] (* or *) Join[{1,2},NestList[2#&,2,30]] (* Harvey P. Dale, Nov 08 2012 *)
  • PARI
    a(n)=2^(n+(n<3)-2) \\ Charles R Greathouse IV, Apr 09 2012
    
  • Python
    def A090129(n): return n if n<3 else 1<Chai Wah Wu, Jul 11 2022

Formula

a(n) = 2^(n-2) if n >= 3, 1 for n=1 and 2 for n=2 (see the order comment above).
a(n+2) = A152046(n) + A152046(n+1) = 2*A011782(n). - Paul Curtz, Jan 18 2009

Extensions

a(11) through a(20) from R. J. Mathar, Aug 08 2008
More terms (powers of 2, see a comment above) from Wolfdieter Lang, Apr 18 2012

A261066 a(n) = (7^(2^n) - 1) / 2^(n+2).

Original entry on oeis.org

6, 150, 180150, 519264540150, 8628341205030630049260150, 4764689404827483203666304150636608674826622242700150
Offset: 1

Views

Author

Marco Ripà, Aug 08 2015

Keywords

Comments

(m^(2^n)-1)/2^(n+2) is an integer for any odd value of m and n>0.
The next term, a(7), has 106 decimal digits.

Examples

			a(3) = (7^8 - 1)/2^5 = 180150.
		

Crossrefs

Programs

Formula

a(n) == 150 (mod 10^4) for all n > 1. - M. F. Hasler, Aug 11 2015

Extensions

a(5) corrected by Vincenzo Librandi, Aug 09 2015

A359500 a(n) = (7^2^n - 1)/2^(n+3).

Original entry on oeis.org

3, 75, 90075, 259632270075, 4314170602515315024630075, 2382344702413741601833152075318304337413311121350075, 1452944967966417671787414728262962471027692106596483349510252251060925112718067382475349181570930962790075
Offset: 1

Views

Author

Jianing Song, Jan 03 2023

Keywords

Crossrefs

A261066 is twice this sequence.
Cf. {odd part of m^2^n - 1}: A068531 (m=3 or m=9), A097421 (m=5), this sequence (m=7).

Programs

  • PARI
    a(n) = (7^2^n - 1)/2^(n+3)
    
  • Python
    def A359500(n): return 7**(1<>n+3 # Chai Wah Wu, Jan 15 2023

Formula

a(n)/a(n-1) = (7^2^(n-1) + 1)/2 = 2^(n+1) * a(n-1) + 1.
For all n > m, a(n) and a(m) are congruent modulo 2^(m+2) but not modulo 2^(m+3).

A210846 (5^(3^(n-1)) + 1)/(2*3^n).

Original entry on oeis.org

1, 7, 36169, 45991238252616223, 851008860651263039991161205833295116837255258128476241
Offset: 1

Views

Author

Wolfdieter Lang, Apr 24 2012

Keywords

Comments

The number of digits of a(n) is 1, 1, 5, 17, 54, 167, 506, 1525, ... .
Integer 2*a(n) implies that 5^delta(3^n) == -1 (mod 3^n), n>=1, with the degree delta(3^n) = phi(2*3^n)/2 = 3^(n-1) of the minimal polynomial C(3^n,x) of the algebraic number 2*cos(pi/3^n). For delta and the coefficient array of C see A055034 and A187360, respectively. That 2*a(n) is indeed an even integer can be shown by analyzing the terms of the binomial expansion of (6-1)^(3^(n-1)) + 1.
This congruence implies that floor(5^(3^(n-1))/3^n) = 2*a(n) - 1, i.e., it is odd. Hence 5^delta(3^n) == +1 (Modd 3^n), n>=2. For Modd n (not to be confused with mod n) see a comment on A203571. One can show that 5 is the smallest positive primitive root Modd 3^n for n>=2 (for n=1 one has 1^1 == +1 (Modd 3)). See A206550. The proof uses the fact that the order of 5 using multiplication Modd 3^n has to be a divisor of delta(3^n)=3^(n-1), i.e., a power of 3. This is because the multiplicative group Modd 3^n has order delta(3^n) and the subgroup formed by the cycle has the order of 5 considered Modd 3^n. Then apply Lagrange's theorem. That for n>=2 no number 5^(3^(n-1-j)), with j=1, 2..., n-1, is congruent +1 (Modd 3^n) follows from the above established congruence and an analysis of the relevant expansion for a given smaller power.
The above statements show that for n>=1 the multiplicative group Modd 3^n is cyclic (for n=1 the cycle is [1], and for n>=2 the cycle is generated by 5). For the cyclic moduli see A206551.

Examples

			n=1: (5^1+1)/6  = 1; n=2: (5^3 + 1)/18 = 126/18 = 7;
n=3: (5^9 +1)/(2*27) = 1953126/54 = 36169.
		

Crossrefs

Cf. A000244 (powers of 3), A068531, A090129 (the case Modd 2^n).

Formula

a(n) = (5^(3^(n-1)) + 1)/(2*3^n).

A210847 a(n) = (3^(2*5^(n-1)) + 1)/(2*5^n), n >= 1.

Original entry on oeis.org

1, 1181, 2871591950767410355081
Offset: 1

Views

Author

Wolfdieter Lang, May 03 2012

Keywords

Comments

The number of digits of a(n) is 1, 4, 22, 117, 593, 2978, 14905, ..., for n >= 1.
Integer a(n) implies that 3^delta(5^n) == -1 (mod 5^n), n>=1, with the degree delta(5^n) = phi(2*5^n)/2 = 2*5^(n-1) of the minimal polynomial C(5^n,x) of the algebraic number 2*cos(Pi/5^n). For delta and the coefficient array of C see A055034 and A187360, respectively. That 2*a(n) is indeed an even integer can be shown by analyzing the terms of the binomial expansion of (10-1)^(5^(n-1)) + 1.
This congruence implies that floor(3^(2*5^(n-1))/5^n) = 2*a(n) - 1, i.e., it is odd. Hence 3^delta(5^n) == +1 (Modd 5^n), n>=1. For Modd n (not to be confused with mod n) see a comment on A203571. One can show that 3 is the smallest positive primitive root Modd 5^n for n>=1. See A206550. The proof uses the fact that the order of 3 using multiplication Modd 5^n has to be a divisor of delta(5^n)=2*5^(n-1), i.e., either 5^e or 2*5^e with certain e>=0. This is because the multiplicative group Modd 5^n has order delta(5^n) and the order of the subgroup formed by the cycle generated by 3 coincides with the order of 3 considered Modd 5^n. Then Lagrange's theorem is applied. That for n>=1 no power of 3 with exponent 2*5^(n-1-j) with j=1,2,..., n-1 is congruent +1 (Modd 5^n) follows by considering the two cases +1 (mod 5^n) and -1 (mod 5^n) separately. The first case is excluded from the above established congruence by an indirect proof. The case -1 (Modd 5^n) can be excluded by an analysis of the relevant expansion for a given smaller power. The other cases 3^k with k = 5^(n-1-j), where j = 0, 1, ..., n-1, are neither -1 (mod 5^n) nor +1 (mod 5^n) because 3^(5^(n-1)) (mod 5^n) is congruent 3 (mod 5) (see A048899), hence neither +1 nor -1 (mod 5^n), respectively. The lower exponents are then excluded in both cases iteratively by an indirect proof taking fifth powers.
The above statements show that for n>=1 the multiplicative group Modd 5^n is cyclic, and for each n the cycle of length 2*5^(n-1) can be generated starting with 3. For the cyclic moduli see A206551.

Examples

			n = 1: (9 + 1)/(10) = 1; n = 2: (3^10 + 1)/50 = 59050/50 = 1181.
n = 3: (3^50 + 1)/250 = 717897987691852588770250/250 = 2871591950767410355081.
		

Crossrefs

Cf. A068531(n-2), n>=3, (the case p=2), A210846 (the case p=3).

Programs

  • Mathematica
    a[n_] := (3^(2*5^(n-1)) + 1)/(2*5^n); Array[a, 3] (* Amiram Eldar, Jul 11 2025 *)

Formula

a(n) = (3^(2*5^(n-1)) + 1)/(2*5^n), n >= 1.

A261067 a(n) = (11^(2^n) - 1)/2^(n + 2).

Original entry on oeis.org

15, 915, 6698715, 717964529118315, 16495138082306681918325119173515, 17413733142679306233865281770975943513633443105435651232476307915
Offset: 1

Views

Author

Marco Ripà, Aug 08 2015

Keywords

Comments

(m^(2^n) - 1)/2^(n + 2) is an integer for any odd value of m and n > 0.
In particular, for m = 11, a(n) is a multiple of 15.

Examples

			a(3) = (11^8 - 1)/2^5 = 6698715.
		

Crossrefs

Programs

Formula

a(n) = 15*A068533(n). - Michel Marcus, Aug 14 2015
Showing 1-6 of 6 results.