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.

A116970 a(n) = (3^n - 7)/2.

Original entry on oeis.org

1, 10, 37, 118, 361, 1090, 3277, 9838, 29521, 88570, 265717, 797158, 2391481, 7174450, 21523357, 64570078, 193710241, 581130730, 1743392197, 5230176598, 15690529801, 47071589410, 141214768237, 423644304718, 1270932914161
Offset: 2

Views

Author

N. J. A. Sloane, Apr 01 2006

Keywords

Comments

Number of moves to solve Type 1 Zig-Zag puzzle.
(3^(p+1) - 7)/2 = a(p+1) == 1 (mod p) since (3^(p-1) - 1)/2 = A003462(p-1) == 0 (mod p), for primes p > 7 (see comment by Alexander Adamchuck in A003462); in addition, a(4) == 1 (mod 3) and a(6) == 1 (mod 5). - Hartmut F. W. Hoft, Aug 22 2018

References

  • Richard I. Hess, Compendium of Over 7000 Wire Puzzles, privately printed, 1991.
  • Richard I. Hess, Analysis of Ring Puzzles, booklet distributed at 13th International Puzzle Party, Amsterdam, Aug 20 1993.

Crossrefs

Programs

Formula

a(n) = 3*a(n-1) + 7 with n > 2, a(2)=1. - Vincenzo Librandi, Aug 02 2010
a(2)=1, a(3)=10; for n > 3, a(n) = 4*a(n-1) - 3*a(n-2). - Harvey P. Dale, Jan 17 2013
G.f.: x^2*(1+6*x)/((1-3*x)*(1-x)). - Vincenzo Librandi, Mar 30 2015
From Hartmut F. W. Hoft, Aug 22 2018: (Start)
a(2) = 1; a(n) = a(n-1) + 3^(n-1) for n > 2. -
a(n) = A003462(n) - 3, n >= 2. (End)

A063680 Solutions to sigma(k) + 7 = sigma(k+7).

Original entry on oeis.org

74, 531434, 387420482, 2541865828322
Offset: 1

Views

Author

Jud McCranie, Jul 28 2001

Keywords

Comments

No other solutions < 4290000000. Sequence A063679 shows how to generate more solutions, but there may be solutions other than those produced by A063679.
No others < 10^17. - Seth A. Troisi, Oct 25 2022
k or k+7 must be a square or twice a square (A028982). See comment in A015886. - Seth A. Troisi, Oct 26 2022
From Jon E. Schoenfield, Oct 26 2022: (Start)
Each of the first 4 terms of the sequence is of the form k = 9^j - 7:
74 = 9^2 - 7,
531434 = 9^6 - 7,
387420482 = 9^9 - 7,
2541865828322 = 9^13 - 7.
The next terms of this form are 9^53 - 7 and 9^82 - 7.
Does the sequence contain any terms that are not of this form?
(End)
No other terms < 2.7*10^15. - Jud McCranie, Jul 27 2025

Examples

			sigma(74) + 7 = 121 = sigma(74+7), so 74 is in the sequence.
		

Crossrefs

Programs

  • PARI
    isok(k) = sigma(k) + 7 == sigma(k+7); \\ Michel Marcus, Oct 25 2022

Extensions

a(4) from Seth A. Troisi, Oct 24 2022

A063681 Primes p such that 2p+7 is a power of three.

Original entry on oeis.org

37, 265717, 193710241, 1270932914161, 187855106306818130162790081799568953899918191769361, 884821727139988111281341588371104523273965529248966451172919369920848760385637
Offset: 1

Views

Author

Jud McCranie, Jul 29 2001

Keywords

Comments

If (3^i-7)/2 is prime then x=3^i-7 is a solution of sigma(x)+7 = sigma(x+7). See A063680 and indices resulting in primes are in A063679.
The next term (a(7)) has 118 digits. - Harvey P. Dale, May 10 2014

Crossrefs

Programs

  • Mathematica
    Select[(#-7)/2&/@(3^Range[2,250]),PrimeQ] (* Harvey P. Dale, May 10 2014 *)

Formula

2*37+7 = 3^4, so 37 is in the sequence.
Showing 1-3 of 3 results.