login

Revision History for A073327

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Write U.S. English name for n (ignoring hyphens and spaces) and add numerical values of letters using a=1, b=2, ..., y=25, z=26.
(history; published version)
#72 by N. J. A. Sloane at Mon Jul 01 19:12:50 EDT 2024
STATUS

proposed

approved

#71 by Robert C. Lyons at Mon Jul 01 18:33:25 EDT 2024
STATUS

editing

proposed

#70 by Robert C. Lyons at Mon Jul 01 18:32:37 EDT 2024
PROG

def A073327(n): return sum(ord(d)-96 for d in re.sub(r"\sand\s|[^a-z]", "", num2words(n)))

STATUS

approved

editing

Discussion
Mon Jul 01
18:33
Robert C. Lyons: Fixed a syntax warning (i.e., "invalid escape sequence '\s'") in the Python program.
#69 by Michael De Vlieger at Thu Apr 20 09:04:00 EDT 2023
STATUS

proposed

approved

#68 by Michel Marcus at Thu Apr 20 01:06:33 EDT 2023
STATUS

editing

proposed

#67 by Michel Marcus at Thu Apr 20 01:06:30 EDT 2023
LINKS

M. F. Hasler in reply to E. Angelini, <a href="http://list.seqfan.eu/oldermail/seqfan/2013-June/011350.html">English number words modulo themselves</a>, SeqFan list, Jun 21 2013

STATUS

proposed

editing

#66 by Jon E. Schoenfield at Wed Apr 19 23:54:37 EDT 2023
STATUS

editing

proposed

#65 by Jon E. Schoenfield at Wed Apr 19 23:54:33 EDT 2023
MATHEMATICA

a[n_] := Total@ Flatten[ ToCharacterCode@# - 96 & /@ Characters@ StringDelete[IntegerName@ n, Except@ LetterCharacter]] (* after Michael De Vlieger in A362065 *); Array[a, 57, 0] (* Robert G. Wilson v, Apr 19 2023 *)

STATUS

reviewed

editing

#64 by Michael De Vlieger at Wed Apr 19 23:24:09 EDT 2023
STATUS

proposed

reviewed

#63 by Robert G. Wilson v at Wed Apr 19 21:53:46 EDT 2023
STATUS

editing

proposed