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

A235538 Earliest infinite sequence of natural numbers such that the members of this sequence as well as the absolute values of the members of the k-th differences of this sequence, for all k>0, are all distinct.

Original entry on oeis.org

1, 3, 9, 26, 5, 13, 31, 15, 27, 81, 22, 45, 92, 20, 50, 145, 46, 89, 32, 71, 151, 40, 75, 163, 73, 124, 60, 126, 244, 97, 219, 63, 132, 306, 68, 144, 297, 79, 166, 354, 83, 187, 394, 94, 203, 419, 108, 220, 460, 127, 260, 110, 247, 513, 161, 340, 117, 252
Offset: 1

Views

Author

Paul Tek, Jan 12 2014

Keywords

Examples

			For n=1:
- 1 is admissible; hence a(1)=1.
For n=2:
- 1 is not admissible (as it already appears in the sequence),
- 2 is not admissible (as a(1) would appear in the first differences),
- 3 is admissible; hence a(2)=3.
For n=3:
- 1 is not admissible (as it already appears in the sequence),
- 2 is not admissible (as it already appears in the first differences),
- 3 is not admissible (as it already appears in the sequence),
- 4 is not admissible (as a(1) would appear in the first differences),
- 5 is not admissible (as 2 would appear twice in the first differences),
- 6 is not admissible (as a(2) would appear in the first differences),
- 7 is not admissible (as 2 would appear in the first and second differences),
- 8 is not admissible (as a(2) would appear in the second differences),
- 9 is admissible; hence a(3)=9.
		

Crossrefs

Programs

  • Mathematica
    a[1] = 1; diffs0 = {1} (* flattened array of successive differences *);
    a[n_] := a[n] = Module[{}, aa = Array[a, n-1]; m0 = 1; While[ MemberQ[ diffs0, m0], m0++]; For[m = m0, True, m++, am = Append[aa, m]; td = Table[Differences[am, k], {k, 0, n-1}]; diffs = Abs[Flatten[td]]; If[ Length[diffs] == Length[Union[diffs]], diffs0 = diffs//Sort; Return[m]]] ];
    Table[Print["a(", n, ") = ", a[n]]; a[n], {n, 1, 100}] (* Jean-François Alcover, Jan 31 2018 *)
  • Perl
    See Link section.

Extensions

Added "infinite" to definition. - N. J. A. Sloane, Oct 05 2019

A328071 Difference triangle for A327460 read by upwards antidiagonals.

Original entry on oeis.org

1, 2, 3, 4, 6, 9, -14, -10, -4, 5, 35, 21, 11, 7, 12, -76, -41, -20, -9, -2, 10, 161, 85, 44, 24, 15, 13, 23, -357, -196, -111, -67, -43, -28, -15, 8, 831, 474, 278, 167, 100, 57, 29, 14, 22, -1955, -1124, -650, -372, -205, -105, -48, -19, -5, 17, 4508, 2553
Offset: 1

Views

Author

N. J. A. Sloane, Oct 05 2019

Keywords

Comments

By definition, all terms are distinct.
Conjecture: every positive number appears. (Probably false, see next comment. - N. J. A. Sloane, Oct 09 2019)
239, 776, 2470, and 7805 are the smallest numbers that do not appear in the first 10^4, 10^5, 10^6, and 10^7 terms respectively. - Peter Kagey, Oct 05 2019. (In other words, 239, 776, 2470, and 7805 probably will never appear. - N. J. A. Sloane, Oct 09 2019)

Examples

			The difference triangle for A327460 begins:
     1,    3,    9,   5,  12,  10,  23, 8, ...
     2,    6,   -4,   7,  -2,  13, -15, ...
     4,  -10,   11,  -9,  15, -28, ...
   -14,   21,  -20,  24, -43, ...
    35,  -41,   44, -67, ...
   -76,   85, -111, ...
   161, -196, ...
  -357, ...
...
Read this by upwards antidiagonals.
		

Crossrefs

Has the same relation to A327460 as A235539 does to A239538.

Extensions

Terms a(29) and beyond from Peter Kagey, Oct 05 2019
Showing 1-2 of 2 results.