login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A345240
a(1) = 1; thereafter a(n) = A161406(a(n-1)).
2
1, 52, 158, 229, 278, 284, 304, 235, 289, 291, 300, 153, 251, 298, 291, 300, 153, 251, 298, 291, 300, 153, 251, 298, 291, 300, 153, 251, 298, 291, 300, 153, 251, 298, 291, 300, 153, 251, 298, 291, 300, 153, 251, 298, 291, 300, 153, 251, 298, 291, 300, 153, 251, 298
OFFSET
1,2
COMMENTS
A Spanish analog of A345126 (British English) and A345157 (US English).
Starting from n = 10 the sequence becomes periodic with period 5: repeat [291, 300, 153, 251, 298].
MATHEMATICA
a[1]=1; a[n_]:=a[n]=Total[If[#=="ñ", 15, If[(s=LetterNumber@#)>14, s+1, s]]&/@Characters@StringDelete[IntegerName[a[n-1], "Spanish"], {" ", "-"}]]; Array[a, 100] (* Giorgos Kalogeropoulos, Jun 11 2021 *)
PadRight[{1, 52, 158, 229, 278, 284, 304, 235, 289}, 120, {300, 153, 251, 298, 291}] (* Harvey P. Dale, Sep 26 2024 *)
CROSSREFS
KEYWORD
nonn,word,easy
AUTHOR
Omar E. Pol and N. J. A. Sloane, Jun 11 2021
STATUS
approved