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.

Previous Showing 21-25 of 25 results.

A316337 Numbers missing from A316667.

Original entry on oeis.org

961, 962, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1219, 1220, 1221, 1222, 1223, 1224, 1225, 1226, 1227, 1228, 1229, 1230, 1231, 1360, 1361, 1362, 1363, 1364, 1365, 1366, 1367, 1368, 1369, 1370, 1371, 1372, 1373, 1374, 1375, 1377, 1443, 1444, 1445, 1446, 1447, 1509, 1510, 1511, 1512, 1513, 1514, 1515
Offset: 1

Views

Author

N. J. A. Sloane, Jul 14 2018

Keywords

Comments

A316667 is finite, so this sequence is infinite.
See A316667 for further information.

Crossrefs

A316338 Numbers missing from A316328.

Original entry on oeis.org

960, 961, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1218, 1219, 1220, 1221, 1222, 1223, 1224, 1225, 1226, 1227, 1228, 1229, 1230, 1359, 1360, 1361, 1362, 1363, 1364, 1365, 1366, 1367, 1368, 1369, 1370, 1371, 1372, 1373, 1374, 1376, 1442, 1443, 1444, 1445, 1446, 1508, 1509, 1510, 1511, 1512, 1513, 1514, 1515
Offset: 1

Views

Author

N. J. A. Sloane, Jul 14 2018

Keywords

Comments

A316328 is finite, so this sequence is infinite.
See A316667 and A316328 for further information.
A316328 has 2016 terms including the initial 0, and the largest term is 3198. Therefore this sequence contains all numbers > 3198 and 3198 - 2015 = 1183 smaller positive terms, whence the formula. - M. F. Hasler, Nov 05 2019

Crossrefs

Formula

a(n + 1183) = n + 3198 for all n > 0. - M. F. Hasler, Nov 05 2019

A341195 Squares visited by knight moves on a diagonally back and forth numbered board in two quadrants and moving to the lowest available unvisited square at every step.

Original entry on oeis.org

1, 11, 7, 2, 6, 12, 9, 3, 5, 14, 8, 4, 18, 33, 21, 29, 24, 26, 47, 10, 23, 13, 19, 16, 38, 34, 17, 15, 20, 30, 42, 56, 45, 28, 22, 31, 41, 58, 44, 32, 40, 35, 37, 62, 66, 36, 39, 60, 68, 63, 65, 98, 102, 64, 67, 61, 70, 93, 43, 55, 46, 27, 49, 52, 25, 51, 78
Offset: 1

Views

Author

Sander G. Huisman, Feb 06 2021

Keywords

Comments

Board is numbered as follows:
. 17 16 5 4 1 2 9 10 . .
. . 18 15 6 3 8 11 24 . .
. . . 19 14 7 12 23 . . .
. . . . 20 13 22 . . . .
. . . . . 21 . . . . .
. . . . . . . . . . .
This sequence is finite: At step 4408 square 4077 is visited, after which there are no unvisited squares within one knight move.

Crossrefs

Programs

  • Mathematica
    (* Version 12.0 or higher needed *)
    ClearAll[ShowRoute,MakeMove,FindSequence]
    knightjump=Select[Tuples[Range[-2,2],2],Norm[#]==Sqrt[5]&];
    ShowRoute[output_Association]:=Module[{colors},colors=(ColorData["Rainbow"]/@Subdivide[Length[output["Coordinates"]]-1.0]);
    Graphics[{Line[output["Coordinates"],VertexColors->colors],Disk[Last@output["Coordinates"],0.2],Style[Disk[Last[output["Coordinates"]]+#,0.2]&/@knightjump,Purple]}]]
    MakeMove[spiral_Association,visited_List]:=Module[{poss,hj},poss=Table[Last[Last[visited]]+hj,{hj,knightjump}];
    poss=DeleteMissing[{spiral[#],#}&/@poss,1,\[Infinity]];
    poss=Select[poss,FreeQ[visited[[All,2]],Last[#]]&];
    If[Length[poss]>0,First[TakeSmallestBy[poss,First,1]],Missing[]]]
    FindSequence[start_:{0,0},grid_]:=Module[{positions,j,next},positions={{grid[start],start}};
    PrintTemporary[Dynamic[j]];
    Do[next=MakeMove[grid,positions];
    If[next=!=Missing[],AppendTo[positions,next],Break[];],{j,\[Infinity]}];
    <|"Coordinates"->positions[[All,2]],"Indices"->positions[[All,1]]|>]
    grid=ResourceFunction["LatticePointsArrangement"]["DiagonalZigZagEastQ34",20000];
    grid=Association[MapIndexed[#1->#2[[1]]&,grid]];
    ShowRoute[fs=FindSequence[{0,0},grid]]
    fs
    fs["Indices"]
    ListPlot[fs["Indices"]]

A308562 Squares visited a knight moving on a board numbered by Hilbert's space-filling curve and moving to the lowest-numbered available unvisited square at each step.

Original entry on oeis.org

1, 8, 11, 14, 5, 2, 9, 4, 7, 12, 3, 6, 55, 32, 13, 10, 31, 16, 19, 22, 25, 18, 15
Offset: 1

Views

Author

Gabriel Stauth, Jun 07 2019

Keywords

Comments

Like the trapped knights problem (A316667 and A316588), but starting in the corner of a board numbered by Hilbert's space-filling curve.
The knight traps itself after only 22 moves (checked manually).

Crossrefs

A316667 and A316588 inspired the idea.

A327602 A chess knight starts at 1 on an extended multiplication table and moves to the next perfect power such that 1) the number of jumps is minimized and 2) the sum of the intermediate numbers is minimized. In case of a tie, choose the lexicographically earliest path.

Original entry on oeis.org

1, 6, 15, 4, 12, 8, 12, 4, 9, 10, 16, 18, 25, 28, 27, 14, 32, 18, 16, 36, 21, 30, 49, 54, 64, 70, 81, 88, 100, 108, 121, 108, 91, 90, 85, 76, 63, 92, 125, 78, 56, 90, 128, 102, 144, 102, 64, 90, 112, 130, 144, 154, 160, 162, 160, 154, 169, 180, 196
Offset: 1

Views

Author

Ali Sada, Dec 02 2019

Keywords

Examples

			Between 4 and 8, the shortest route is through 12 (2*6); it takes only two steps:
.
      1      2      3      4      5      6      7      8
  +------+------+------+------+------+------+------+------+
  |      |      |      |      |      |      |      |      |
1 |   1  |   2  |   3  |  *4* |   5  |   6  |   7  | .*8* |
  |      |      |      |      |.     |      |    . |      |
  +------+------+------+------+---.--+------+-.----+------+
  |      |      |      |      |      .     .|      |      |
2 |   2  |   4  |   6  |   8  |  10  | *12* |  14  |  16  |
  |      |      |      |      |      |      |      |      |
  +------+------+------+------+------+------+------+------+
  |      |      |      |      |      |      |      |      |
3 |   3  |   6  |   9  |  12  |  15  |  18  |  21  |  24  |
  |      |      |      |      |      |      |      |      |
  +------+------+------+------+------+------+------+------+
  |      |      |      |      |      |      |      |      |
4 |   4  |   8  |  12  |  16  |  20  |  24  |  28  |  32  |
  |      |      |      |      |      |      |      |      |
  +------+------+------+------+------+------+------+------+
.
Between 32 and 36, there are several routes that take only three jumps. We choose 32,18,16,36 because the sum of intermediate numbers is the least.
		

Crossrefs

Previous Showing 21-25 of 25 results.