A131744 Eric Angelini's "1995" puzzle: the sequence is defined by the property that if one writes the English names for the entries, replaces each letter with its rank in the alphabet and calculates the absolute values of the differences, one recovers the sequence.
1, 9, 9, 5, 5, 9, 9, 5, 5, 9, 1, 3, 13, 17, 1, 3, 13, 17, 9, 5, 5, 9, 9, 5, 5, 9, 1, 3, 13, 17, 1, 3, 13, 17, 9, 5, 5, 9, 10, 1, 9, 15, 12, 10, 13, 0, 15, 12, 1, 9, 2, 15, 0, 9, 5, 14, 17, 17, 9, 6, 15, 0, 9, 1, 1, 9, 15, 12, 10, 13, 0, 15, 12, 1, 9, 2, 15, 0, 9, 5, 14, 17, 17, 9
Offset: 1
Examples
O.N.E...N.I.N.E...N.I.N.E...F.I..V..E...F.I..V..E... .1.9..9..5.5.9..9..5.5.9..1..3.13.17..1..3.13.17.... 1 -> "one" -> 15,14,5 -> (the difference is) 1,9; iterate. Therefore 1,9 -> "one,nine"; -> 15,14,5,14,9,14,5 -> 1,9,9,5,5,9; "one,nine,nine,five,five,nine"; etc. - _Robert G. Wilson v_, Jun 08 2010
Links
- N. J. A. Sloane, Table of n, a(n) for n = 1..40000
- N. J. A. Sloane, "A Handbook of Integer Sequences" Fifty Years Later, arXiv:2301.03149 [math.NT], 2023, p. 9.
Crossrefs
Programs
-
Mathematica
Nest[Abs@Differences@Flatten[LetterNumber[Characters[IntegerName@#]/."-"->""]&/@#]&,{1},4] (* Giorgos Kalogeropoulos, Apr 11 2021 *)
-
Python
def chrdist(a, b): return abs(ord(a)-ord(b)) def aupto(nn): allnames = "zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen,twenty,twentyone" names = allnames.split(",") alst, aidx, last, nxt = [1, 9], 1, "e", "one" while len(alst) < nn: nxt = names[alst[aidx]] alst += [chrdist(a, b) for a, b in zip(last+nxt[:-1], nxt)] last, aidx = nxt[-1], aidx + 1 return alst[:nn] print(aupto(84)) # Michael S. Branicky, Jan 09 2021
Extensions
More terms from N. J. A. Sloane, Sep 20 2007
Comments