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.

A164059 Number of straight plus curved segments in the capitalized English name of n.

This page as a plain text file.
%I A164059 #10 May 04 2019 03:41:29
%S A164059 11,8,7,16,8,10,4,14,13,11,9,19,18,22,21,20,17,27,24,24,18,26,25,34,
%T A164059 26,28,22,32,31,29,14,22,21,30,22,24,18,28,27,25,12,20,19,28,20,22,16,
%U A164059 26,25,23,12,20,19,28,20,22,16,26,25,23,9,17,16,25,17,19,13,23,22,20,19
%N A164059 Number of straight plus curved segments in the capitalized English name of n.
%C A164059 Number of straight plus curved segments in all letters of the name of n, excluding hyphens.
%F A164059 a(n) = A163828(n) + (number of curves in the letters of the English name of n as in A164058).
%F A164059 a(n) = A163828(n) for n in A163670.
%e A164059 a(0) = 11 because ZERO has (letter by letter) 3+4+2+0 = 9 straight line segments (chisel strokes) and 0+0+1+1 = 2 curves as in A164058, with 9 + 2 = 11.
%e A164059 a(1) = 8 because of 1 curve in O, plus 3 chisel strokes in N and 4 chisel strokes in E, summing to 8 segments (straight or curved) in ONE.
%p A164059 names :=["zero", "one", "two", "three", "four", "five", "six", "seven", "eight",
%p A164059 "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen",
%p A164059 "seventeen", "eighteen", "nineteen", "twenty", "twentyone", "twentytwo", "twentythree",
%p A164059 "twentyfour", "twentyfive", "twentysix", "twentyseven", "twentyeight", "twentynine", "thirty",
%p A164059 "thirtyone", "thirtytwo", "thirtythree", "thirtyfour", "thirtyfive", "thirtysix",
%p A164059 "thirtyseven", "thirtyeight", "thirtynine", "forty", "fortyone", "fortytwo",
%p A164059 "fortythree", "fortyfour", "fortyfive", "fortysix", "fortyseven", "fortyeight",
%p A164059 "fortynine", "fifty", "fiftyone", "fiftytwo", "fiftythree", "fiftyfour",
%p A164059 "fiftyfive", "fiftysix", "fiftyseven", "fiftyeight", "fiftynine", "sixty",
%p A164059 "sixtyone", "sixtytwo", "sixtythree", "sixtyfour", "sixtyfive", "sixtysix",
%p A164059 "sixtyseven", "sixtyeight", "sixtynine", "seventy", "seventyone", "seventytwo",
%p A164059 "seventythree", "seventyfour", "seventyfive", "seventysix", "seventyseven",
%p A164059 "seventyeight", "seventynine", "eighty", "eightyone", "eightytwo", "eightythree",
%p A164059 "eightyfour", "eightyfive", "eightysix", "eightyseven", "eightyeight", "eightynine",
%p A164059 "ninety", "ninetyone", "ninetytwo", "ninetythree", "ninetyfour", "ninetyfive",
%p A164059 "ninetysix", "ninetyseven", "ninetyeight", "ninetynine", "onehundred"] :
%p A164059 cstrok := [ 3, 1, 0, 1, 4, 3, 2, 3, 1, 1, 3, 2, 4, 3, 0, 1, 1, 2, 0, 2, 0, 2, 4, 2, 3, 3 ] ;
%p A164059 A164058 := [ 0, 2, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0] ;
%p A164059 A164059 := proc(n) global names, cstrok, A164058; local a,idx ; a := 0 ; for c in StringTools[Explode]( names[n+1]) do idx := StringTools[Ord](c)-96 ; a := a+ cstrok[idx]+A164058[idx] ; od: a ; end:
%p A164059 seq(A164059(n),n=0..70) ; # _R. J. Mathar_, Sep 29 2009
%Y A164059 Cf. A002963, A005589, A163670, A163828, A164058.
%K A164059 easy,nonn,word
%O A164059 0,1
%A A164059 _Jonathan Vos Post_, Aug 08 2009
%E A164059 More terms from _R. J. Mathar_, Sep 29 2009