In a previous post I gave an example of an alphamagic square in English. This is a magic square such that if you replace each number with the letter count when spelling out the word, you get another magic square.

I wondered whether I could find an alphamagic square in Spanish, so I wrote a script to look. I found two. (Plus there are eight rotations and reflections of each.)
The first is the following:
![[[93, 155, 121], [151, 123, 95], [125, 91, 153]]](http://www.johndcook.com/spanish_alphamagic_1.png)
When spelled out in Spanish the numbers are:
![[[noventa y tres, ciento cincuenta y cinco, ciento veintiuno], [ciento cincuenta y uno, ciento veintitrés, noventa y cinco], [ciento veinticinco, noventa y uno, ciento cincuenta y tres]]](http://www.johndcook.com/spanish_alphamagic_1w.png)
And the number of letters in each cell gives:
![[[12, 21, 15],[19, 16, 13], [17, 11, 20]]](http://www.johndcook.com/spanish_alphamagic_1f.png)
Here’s a second example:
![[[95, 156, 124], [154, 125, 96], [126, 94, 155]]](http://www.johndcook.com/spanish_alphamagic_2.png)
Spelled out in Spanish:
![[[noventa y cinco, ciento cincuenta y seis, ciento veinticuatro], [ciento cincuenta y cuatro, ciento veinticinco, noventa y seis], [ciento veintiséis, noventa y cuatro, ciento cincuenta y cinco]]](http://www.johndcook.com/spanish_alphamagic_2w.png)
Sum of the letters:
![[[13, 20, 18], [22, 17, 12], [16, 14, 21]]](http://www.johndcook.com/spanish_alphamagic_2f.png)
If my script is correct, these are the only examples (besides their rotations and reflections) for numbers between 1 and 200.
Any chance for the script? I would like to give Polish language a try.
“If my script is correct”
I trust your script. Do I trust your Spanish, though?