Monday, 6 July 2026

Narcissistic Number Style Algorithm

Let's consider the following algorithm:

  • choose a number \(n\)
  • let \(k\) be the number of digits in \(n\)
  • raise each digit of \(n\) to the \(k\)-th power and add the results
  • call the new number \(n\) and repeat
Let's use \(n=14\) as an example:

  • \(14 \rightarrow 1^2 + 4^2 = 17\)
  • \(17 \rightarrow 1^2 + 7^2 = 50\)
  • \(50 \rightarrow 5^2 + 0^2 = 25\)
  • \(25 \rightarrow 2^2 + 5^2 = 29\)
  • \(29 \rightarrow 2^2 + 9^2 = 85\)
  • \(85 \rightarrow 8^2 + 5^2 = 89\)
  • \(89 \rightarrow 8^2 + 9^2 = 145\)
  • \(145 \rightarrow 1^3 + 4^3 + 5^3 = 190\)
  • \(190 \rightarrow 1^3 + 9^3 + 0^3 = 730\)
  • \(730 \rightarrow 7^3 + 3^3 + 0^3 = 370\)
  • \(370 \rightarrow 3^3 + 7^3 + 0^3 = 370\) 
370 is a narcissistic number as explained in my post Narcissistic, D-Powerfull and Friedman Numbers. The trajectory of any number under this algorithm will either end with a narcissistic number (as was the case with 14) or it will enter a loop (as is the case with 28218). The latter has the following trajectory (permalink):

==================================================
TRAJECTORY ANALYSIS FOR INPUT: 28218
==================================================
Full Trajectory Visited:

28218, 65601, 18678, 90120, 59082, 94974, 136953, 595181, 824837, 646826, 406272, 168529, 855931, 825565, 355739, 681798, 1220035, 80569, 102718, 379859, 1459029, 9660576, 6524445, 485466, 379273, 768261, 473170, 240124, 8321, 4194, 7074, 5058, 5346, 2258, 4753, 3363, 1539, 7268, 7809, 13058, 36137, 25070, 19964, 126899, 1371747, 2489202, 6896889, 16417266, 10869443, 61641187, 25966788, 86116067, 27580867, 47154531, 6683686, 5316235, 440689, 848433, 533938, 811397, 911965, 1125165, 436317, 169860, 886898, 1626673, 1665667, 2021413, 18829, 124618, 312962, 578955, 958109, 1340652, 376761, 329340, 537059, 681069 -> [loops back to 886898]

Loop Entry Point:   886898 (encountered at step 65)

Pre-period Length:  64 step(s) before entering cycle

Cycle Length:       14 distinct number(s) in the loop

Canonical Cycle:    18829, 124618, 312962, 578955, 958109, 1340652, 376761, 329340, 537059, 681069, 886898, 1626673, 1665667, 2021413

==================================================

Figure 1 shows a graph of its trajectory:

Figure 1: permalink

I've incorporated this algorithm into my daily number analysis.

Narcissistic, D-Powerfull and Friedman Numbers

Time to differentiate between narcissistic numbers, d-powerful numbers and Friedman numbers. I've mentioned all these before in posts titled Forming Equations from Integers, Nude NumbersSOD ET AL and Selfie Numbers. This post gathers disparate information into the one place and includes additional information.

NARCISSISTIC NUMBERS

A number $n$ of $k$ digits is called narcissistic if it is equal to the sum of the $k$-th powers of its digits. An example is 9474 where:$$9474=9^4+4^4+7^4+4^4$$These numbers are quite rare and up to 40000 the only ones are 153, 370, 371, 407, 1634, 8208 and 9474. These numbers comprise OEIS A005188:


A005188: Armstrong (or pluperfect, or Plus Perfect, or narcissistic) numbers: \(m\)-digit nonnegative numbers equal to sum of the \(m\)-th powers of their digits.

This is a finite sequence, the 89th and last term being:$$ 115132219018763992565095597973971522401$$They are named after Michael Frederick Armstrong (1941-2020), who used these numbers in his computing class at the University of Rochester in the mid 1960's. A brief biography of his is included at the end of this post.

D-POWERFUL NUMBERS

An integer $n$ is called digitally powerful or d-powerful if it can be expressed as a sum of positive powers of its digits. For example:$$3459872 = 3^1 + 4^6 + 5^5 + 9^6 + 8^3 + 7^7 + 2^{21}$$These are far more numerous than narcissistic numbers. Here is a link to a text file that shows all the d-powerful numbers up to one million together with the configuration of their digits. It can be noted that every narcissistic number is a d-powerful number. The d-powerful numbers make up OEIS where they are referred to as "handsome" numbers.


A007532: Handsome numbers: sum of positive powers of its digits:$$ \text{a(}n) = \sum_{i=1}^k \text{d}[i]^{e[i]}$$where \( \text{d}[i]\) are the decimal digits of \( \text{a}(n), \text{e}[i] > 0\).

The initial d-powerful numbers are:

1, 2, 3, 4, 5, 6, 7, 8, 9, 24, 43, 63, 89, 132, 135, 153, 175, 209, 224, 226, 262, 264, 267, 283, 332, 333, 334, 357, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 407, 445, 463, 518, 598, 629, 739, 794, 849, 935, 994 

FRIEDMAN NUMBERS

A Friedman number is a positive integer which can be written in some non-trivial way using its own digits, together with the symbols + – × / ^ ( ) and concatenation. For example:$$25 = 5^2 \text{ and } 126 = 21 × 6$$Extensive information can be found about them via this link.

Friedman Numbers With 4 or Fewer Digits

25 = 52121 = 112125 = 51+2126 = 6 × 21127 = – 1 + 27128 = 28–1
153 = 3 × 51216 = 62+1289 = (8 + 9)2343 = (3 + 4)3347 = 73 + 4625 = 56–2
688 = 8 × 86736 = 7 + 361022 = 210 – 21024 = (4 – 2)101206 = 6 × 2011255 = 5 × 251
1260 = 6 × 2101285 = (1 + 28) × 51296 = 6(9–1)/21395 = 15 × 931435 = 35 × 411503 = 3 × 501
1530 = 3 × 5101792 = 7 × 29–11827 = 21 × 872048 = 84 / 2 + 02187 = (2 + 18)72349 = 29 × 34
2500 = 502 + 02501 = 502 + 12502 = 2 + 5022503 = 502 + 32504 = 502 + 42505 = 502 + 5
2506 = 502 + 62507 = 502 + 72508 = 502 + 82509 = 502 + 92592 = 25 × 922737 = (2 × 7)3 – 7
2916 = (1 × 6 × 9)23125 = (3 + 1 × 2)53159 = 9 × 3513281 = (38 + 1) / 23375 = (3 + 5 + 7)33378 = (7 + 8)3 + 3
3685 = (36 + 8) × 53784 = 8 × 4733864 = 3 × (– 8 + 64)3972 = 3 + (9 × 7)24088 = 84 – 8 – 04096 = (4 + 0 × 9)6
4106 = 46 + 104167 = 46 + 714536 = 56 × 344624 = (64 + 4)24628 = 682 + 45120 = 5 × 210
5776 = 767–55832 = (2 × 5 + 8)36144 = 6 × 44+16145 = 6 × 45 + 16455 = (64 – 5) × 56880 = 8 × 860
7928 = 892 + 78092 = 902 – 88192 = 8 × 29+19025 = 952 + 09216 = 1 × 9629261 = 219–6

The Friedman numbers in the table that are in red are called "nice" because the digits on the right of the equations are in the same order as those on the right.

5–Digit Friedman Numbers

10192 = 1012 – 910201 = 1012 + 010251 = 51 × 20110255 = 5 × 205110368 = 8 × 61+0+3
10426 = 26 × 40110521 = 21 × 50110525 = 5 × 210510575 = 15 × 70510824 = 1042 + 8 (TG)
10935 = 15 × 93 + 011025 = (110 – 5)211163 = 3 × 611+111259 = 9 × 125111264 = 11 × 26+4 (MR)
11439 = 9 × 31 × 4111663 = 16 × 36 – 111664 = 1 × 1 × 66 / 411665 = 66 / (5 – 1) + 111844 = 84 × 141
11848 = 8 × 148111943 = 9 × (113 – 4)12006 = 6 × 200112060 = 6 × 201012091 = 1102 – 9 (PF)
12100 = 1102 + 012101 = 1102 + 112102 = 1102 + 212103 = 1102 + 312104 = 1102 + 4
12105 = 1102 + 512106 = 1102 + 612107 = 1102 + 712108 = 1102 + 812109 = 1102 + 9
12167 = (16 + 7)1+2 (PF)12288 = (1+2) × 88/212321 = (113 – 2)2 (TG)12337 = 73 × 13212384 = 3 × 4128
12493 = (4 + 9) × 31212505 = 5 × 250112544 = (51 – 2) × 4412546 = 51 × 24612550 = 5 × 2510
12595 = 5 × 251912600 = 6 × 210012762 = 6 × 212712768 = 8 × 21 × 7612769 = (96 + 17)2
12798 = 2 × 79 × 8112802 = 2 × (802 + 1)12843 = 3 × 428112850 = (1 + 28) × 5012955 = 5 × 2591
12960 = 160 × 9212964 = 14 × 92612996 = (6 × (1 + 9 + 9))213125 = 21 × 53+113176 = 61 × (7 – 1)3
13225 = (1 × 5 × 23)213243 = 41 × 32313286 = 26 × (83 – 1)13496 = 4 × ((6 + 9)3 – 1)13545 = 3 × 4515
13689 = (9 × 13)8–613725 = 5 × ((2 × 7)3 + 1)13764 = 6 × 31 × 7413813 = (3 × 8)3 – 1113822 = (3 × 8)2+1 – 2
13823 = (3 × 8)3 – 2 + 113824 = (3 × 8)4+1–213825 = 1 + (3 × 8)–2+513826 = (18 + 6)3 + 213832 = (3 + 21)3 + 8
13842 = 243 + 1813950 = 15 × 93014035 = 35 × 40114129 = 114 – 2914168 = 11 × (64 – 8)
14175 = 7 × 451+114256 = (2 × 5 + 1) × 6414350 = 35 × 41014352 = 23 × (54 – 1)14641 = (1+4+6)4×1 (PF)
14645 = (5 + 6)4 + 4×114647 = (4 + 7)4 + 6×115003 = 3 × 500115030 = 3 × 501015125 = 5 × (5 × 11)2
15246 = 6 × 254115300 = 3 × 510015345 = 3 × 5 × (45 – 1)15378 = 7 × (5 + 8)3 – 115379 = 7 × (5 + 9 – 1)3
15435 = 3 × 514515495 = 15 × (45 + 9)15552 = (15 + 5)5 × 215562 = 1 × 2 × (65 + 5)15567 = 56 – 57 – 1
15568 = 56 – 58 + 115585 = 1 × (55 – 8) × 515586 = 56 – 5 × 8 + 115612 = – 1 + 56 – 1215613 = 1 + 56 – 13
15615 = 56 – 5 × (1 + 1)15617 = –1 + 56 – 1 × 715618 = 1 + 56 – 1 × 815620 = 56 – 10 / 2 (TG)15621 = –1 + 56 – 2 – 1
15622 = 1 + 56 – 2 – 215623 = –1 + 56 + 2 – 315624 = 1 + 56 + 2 – 415625 = 56 × 12515626 = 1 + 56×2–6
15627 = 56 + 2 × 1715628 = 56 + 8 / 2 – 115629 = 56 + (9 – 1) / 215631 = 56 + (1 + 1) × 315632 = 1 + 56 + 3 × 2
15633 = – 1 + 56 + 3 × 315634 = 56 + 13 – 415635 = 56 + 5 × (3 – 1)15641 = 56 + 41+115642 = 1 + 56 + 42
15645 = 1× 56 + 4 × 515655 = 1 × 5 × (6 + 55)15656 = 1 + 56 + 5 × 615661 = 56 + 61+115662 = 1 + 56 + 62
15667 = 1 × 56 + 6 × 715679 = 56 + 9 × (7 – 1)15688 = –1 + 56 + 8 × 815689 = 56 + 8 × (9 – 1)15697 = 56 + 9 × (7 + 1)
15698 = 1 + 56 + 9 × 815795 = 9 × 175515975 = 5 × 5 × 9 × 7116225 = 6 × 522 + 116245 = 5 × (61 – 4)2
16272 = 6 × 271216295 = (1 + 6)5 – 2916347 = 47 – 36 – 116348 = 48–1 – 3616368 = 8 × 31 × 66
16372 = (1 + 3)7 – 6 × 216374 = 47 – 1 – 6 – 316375 = (5 – 1)7 – 6 – 316377 = (1 + 6 – 3)7 – 716378 = (8 – 3 – 1)7 – 6
16381 = (1 + 1)6+8 – 316382 = (3 – 1)6+8 – 216384 = 163 × (8 – 4) (TG)16385 = (5 – 3)6+8 + 116387 = (1 – 6/8)-7 + 3 (JD)
16447 = – 1 + 64 + 4716448 = 48–1 + 6416479 = 47 + 96 – 116743 = 76–1 – 4316758 = 75 – 6 × 8 – 1
16759 = 75 – 6 × (9 – 1)16765 = 75 – 6 × (6+1)16783 = 76–1 – 8 × 316794 = 76–1 – 9 – 416797 = 76 / 7 – 9 – 1
16798 = 76 / (8 – 1) – 916807 = 76–1 + 0 × 816815 = (1 + 6)5 + 1 × 816875 = 1 × 68 + 7516879 = 76–1 + 8 × 9
17253 = (72 – 1) × 3517325 = 75 × 23117328 = 8 × (37 – 21)17346 = 6 × 7 × 41317368 = 8 × (37 – 16)
17384 = 8 × (37 – 14)17428 = 2 × 871417437 = 47 × 37117482 = 2 × 874117488 = 8 × (4 – 1)7 – 8
17536 = 1 + 75 + 3617689 = (7 × 19)8–617856 = 8 × (56 – 1) / 717892 = 9 × 28 × 7117920 = 70 × 29–1
17925 = 5 × (7 × 29 + 1)18225 = 81 × 22518265 = 65 × 28118270 = 21 × 87018432 = 18 × 43+2 (MR)
18435 = 18 × 45 + 318522 = 2 × 218–518594 = 18 × (45 + 9)18723 = 3 × (71 + 8)218744 = 71 × (44 + 8)
19026 = 21 × 90619215 = 21 × 91519321 = 1 × 139219392 = 39 – 29119453 = 19 × 45 – 3 (MR)
19592 = (5 – 2)9 – 9119629 = (1 + 2)9 – 6 × 919642 = (6 / 2)9 – 4119653 = 39 – 1 × 5 × 619682 = (6 / 2)9 – 18
19683 = 1 × (9 – 6)8 × 319684 = (6 × 4 / 8)9 + 119692 = (6 / 2)9 + 9 × 119693 = (6 – 3)9 + 1 + 919732 = 39 + 1 × 72
19734 = 3 × (94 + 17)19736 = 9 × (37 + 6) – 119737 = 9 × (37 + 7 – 1)19738 = 39 + 7 × 8 – 119739 = (–1 + 9) × 7 + 39
19773 = 9 × (7 + 7 – 1)319845 = 5 × 49 × 8120485 = 5 × (20 + 84)20736 = (2 × 6)7–3 + 021175 = 7 × (5 × 11)2
21375 = 3 × 712521495 = 21 × 45 – 921504 = 21 × 45 + 021586 = 86 × 25121606 = 6 × (602 + 1)
21753 = 3 × 725121843 = (48 – 1) / 3 – 221844 = (48 – 4) / (1 + 2)21845 = (48 – 1) / (5 – 2)21848 = (48 + 8) / (1 + 2)
21870 = 27 × 81021875 = 7 × (8 – 2 – 1)521943 = (2 × 14)3 – 921952 = (29 – 1)5–2 (TG)21953 = (2 × (5 + 9))3 + 1
22264 = 46 × 22222528 = 22 × (8 / 2)522757 = 7 × (572 + 2)23326 = 3 × 62+3 – 223328 = (2 × 33)2 × 8
23392 = 32 × (93 + 2)23456 = 25 × (36 + 4)23490 = 290 × 3423546 = 23 × 45 – 623548 = (3 + 4) × 582
23552 = 23 × 25+523796 = 6 × ((7×9)2 – 3)24336 = (4 × (36 + 3))224339 = (4 × 39)2 + 324367 = 7 × (63 – 4)2
24375 = (37 + 2) × 5424385 = (58 / 2)3 – 424389 = (2 × 8 + 9 + 4)324390 = 293 + 4024393 = (3 × 9 + 2)3 + 4
24546 = (2 + 4) × (–5 + 46)24564 = 6 × (4 × 45 – 2)24566 = 6 × 46 – 2 × 524576 = (2 / 4)–5–7 × 624584 = 24 × 45 + 8
24586 = 6 × 84 + 2 × 524768 = 4 × 72 × 8624964 = (94 + 64)224972 = 4 × (792 + 2)25105 = 5 × 5021
25137 = 513 × 7225314 = (154 + 3) / 225375 = 35 × 72525474 = 47 × 54225510 = 5 × 5102
25725 = 525 × 7225872 = 528 × 7225895 = 5 × ((8 × 9)2 – 5)25921 = (159 + 2)226238 = 2 × 2 × 38 – 6
26244 = (2 / 6)–2×4 × 4 (MR)26348 = 4 × (38 + 26)26364 = 263 × 6 / 426496 = 9 × 46 × 2626624 = 26 × 24+6
26754 = 546 × 7226896 = (96 + 68)226973 = 37 × 96/227436 = (6 × 7 – 4)3 / 227634 = 2 × ((6 × 4)3 – 7)
27639 = 27 × 63 – 927648 = (7 – 2 / 8) × 4627653 = 63 × 27 + 527654 = 27 × 45 + 627783 = (3 × 7)8/2 / 7
27889 = (79 + 88)228217 = (21 × 8)2 – 728224 = (2 + 82)2 × 428226 = (28 × 6)2 + 228322 = 2382 / 2
28476 = 7 × (46 – 28)28547 = (8 + 5)4 – 7 × 228554 = (8 + 5)4 – 5 – 2 (TG)28556 = (8 + 5)6–2 – 528559 = –2 + (8 + 5)–5+9
28561 = 1 × (8 + 5)6–2 (TG)28564 = (8 + 5)4 + 6 / 2 (TG)28671 = (2 / 8)–6 × 7 – 128672 = 7 × (8 – 2 – 2)628674 = 7 × (8 – 4)6 + 2
28678 = 7 × (8 × 8)2 + 628728 = 7 × (82×2 + 8)28749 = 7 × (84 + 9 + 2)28764 = 6 × (2 × 74 – 8)28784 = 7 × (84 + 16)
28900 = (80 + 90)2 (TG)29160 = 10 × (6 × 9)229184 = 4 × 8 × 91229282 = 2 × (9+2)8/2 (MR)29517 = (95 – 1) / 2 – 7
29519 = (95 – 9) / 2 – 129523 = 95 / 2 – 3 / 229524 = (2 × 95 – 2) / 429525 = (95 + 5) / 2 – 229526 = (95 + 6 / 2) / 2
29527 = (95 + 7 – 2) / 229529 = 95 / 2 + 9 / 229531 = (95 + 13) / 229549 = (95 + 49) / 229584 = (4 × 5 × 9 – 8)2
29632 = 32 × 92629768 = 8 × (9 × 6 + 7)229795 = 59 × (29 – 7)29929 = (9 × 9 + 92)230625 = (3 × 60 – 5)2
31250 = 10 × (2 + 3)531252 = 2 × (52×3 + 1)31256 = 1 × 2 × (56 + 3)31346 = 43 × 36 – 131347 = 43 × 37–1
31509 = 9 × 350131590 = 9 × 351031682 = 62 × (83 – 1)32685 = (6 + 2)5 – 8332697 = 63 × (29 + 7)
32744 = 2 × (47 – 3 × 4)32747 = 2 × 47 – 3 × 732751 = 2 3×5 – 1732759 = (3 – 2 + 7)5 – 932761 = 23(6–1) – 7 (TG)
32762 = 23(7–2) – 6 (TG)32764 = 23×7–6 – 432765 = –3 + (2 × 7 – 6)5 (TG)32768 = (3 – 2 + 7)6 / 832771 = 3 + 27+7+1 (MR)
32772 = 2 × ((7 – 3)7 + 2)32775 = (7 + 3 – 2)5 + 732778 = 27+8 + 7 + 332781 = 27+8 + 1332782 = 83+2 + 7 × 2
32783 = 323 + 7 + 832785 = 3 + 2 × 7 + 8532786 = 27+8 + 3 × 632795 = 5 × (97–3 – 2)32805 = 5 × (38 + 2 × 0)
32815 = 5 × (38 + 2 × 1)32825 = 5 × (38 + 2 × 2)32832 = 323 + 8232835 = 5 × (38 + 2 × 3)32836 = 323 + 68
32845 = 5 × (38 + 2 × 4)32849 = (4×8)3 + 9232851 = 215 + 8332853 = 323 + 8532854 = 85 + 43 × 2
32855 = 5 × (38 + 2 × 5)32859 = 85 + 93 – 232865 = 5 × (38 + 2 × 6)32875 = 5 × (38 + 2 × 7)32885 = 5 × (38 + 2 × 8)
32895 = 5 × (38 + 2 × 9)33495 = 33 × (45 – 9)33579 = 7 × 9 × 53333655 = 53 × 63533696 = 36 × 936
34425 = 34 × 42534968 = 3 × (9 × 64 – 8)34986 = 48 × 93 – 634991 = (9 + 9)4 / 3 – 134992 = 3 × (9 × 2)4 / 9
34993 = ((9 + 9)4 + 3) / 334996 = 6 × (9 + 9)3 + 435152 = 2 × (5 × 5 + 1)335684 = 85 + 4 × 3635721 = 35 × 7 × 21
35726 = 72 × 36 + 535782 = (57 – 38) / 235928 = (52 + 8)3 – 935932 = (3 × (9 + 2))3 – 535933 = 333 + 5 – 9 (TG)
35937 = (35 + 7 – 9)335942 = (42 – 9)3 + 5 (TG)36457 = (7 × 56 – 4) / 336549 = 9 × (46 – 35)36850 = (36 + 8) × 50
36855 = 63 × 58536864 = (6 + 6 – 3) × 8436918 = 9 × (83+1 + 6)37179 = 37 × (1 + 7 + 9)37187 = 17 × 37 + 8
37249 = (3 × 7 × 9 + 4)237449 = (49 – 4 + 3) / 737668 = 6 × 73 × 8637814 = 74 × (83 – 1)37840 = 8 × 4730
37845 = 87 × 43537875 = 75 × (83 – 7)38416 = 148×3/6 (TG)38424 = (2 × (3 + 4))4 + 838427 = (2 × 7)4 + 8 + 3
38637 = (8 × 7 – 3) × 3638640 = 30 × (–8 + 64)38856 = (38 – 85) × 638912 = 38 × 29+139216 = ((9 – 2)6 – 1) / 3
39283 = 39 × 2 – 8339288 = 8 × ((9 + 8)3 – 2)39294 = 2 × (39 – 4×9)39295 = (52 + 9)3 – 939304 = 343 + 0 × 9 (TG)
39313 = (33 + 1)3 + 9 (TG)39314 = 343 + 1 + 939328 = 2 × 39 – 3839342 = (39 – 3 × 4) × 239343 = 39 + 343 (TG)
39356 = 6 × (39 – 5) / 339358 = 39 × (–3 + 5) – 839362 = 6 × (39 – 2) / 339363 = 39 / 3 × 6 – 3 (MR)39366 = 39 / (–3 + 6) × 6 (MR)
39368 = 6 × (38 + 3 / 9)39369 = 3 + 93 × 6 × 939372 = (3 + 9 × 37) × 239382 = ((3 × 9)3 + 8) × 239424 = 29 × (34 – 4)
39456 = 6 × (94 + 3 × 5)39784 = 8 × 497339864 = 6 × (94 + 83)39945 = 39 × 45 + 941323 = 43 × 312
41468 = 4 × (8 × 64 – 1)41472 = 2 × (1 + 4 + 7)441665 = 641 × 65 (GR)42025 = 2054–2 (TG)42336 = 6 × (34 + 3)2
42875 = (42–7)8–5 (TG)42898 = 89 × 48243264 = (63 – 4 – 4)243268 = (63 – 8)2 + 443375 = 53 × (73 + 4)
43688 = 86 × (83 – 4)43689 = (49 + 8) / 6 – 343691 = 49 / 6 + 1 / 343692 = (49 + 23) / 643775 = (4 × 37 + 7) × 5
43932 = 3 × ((9 + 2)4 + 3)44375 = 54 × (43 + 7)44676 = 6 × 744644977 = (7 + 7)4 + 9445056 = (50 – 6) × 45
45360 = 35 × 64 + 045361 = 35 × 64 + 145362 = 35 × 64 + 245363 = 35 × 64 + 345364 = 35 × 64 + 4
45365 = 35 × 64 + 545366 = 35 × 64 + 645367 = 35 × 64 + 745368 = 35 × 64 + 845369 = 35 × 64 + 9
45632 = –45 + 63×245684 = 54 × 84645760 = 65 × 70445864 = 84 × 54645873 = 7 × 38 – 54
45927 = ((4 + 5) × 9)2 × 745947 = 4 × 5 + 94 × 745957 = 7 × (94 + 5) – 545978 = 7 × (94 + 8) – 546256 = 66 – (4 × 5)2
46368 = 36 × (64 – 8)46556 = 66 – 4 × 5 × 5 (TG)46593 = 3 × (56 – 94)46608 = 66 – 48 + 0 (TG)46613 = 66 – 43 × 1 (TG)
46615 = 6 × 65 – 4146619 = 66 – 9 × 4 – 1 (TG)46624 = 66 – 4 × 4 × 2 (TG)46626 = –4 + 66 – 2646630 = 4 + 66 – 30 (MR)
46632 = –4 × 6 + 63×246633 = 4 + 66 – 33 (TG)46635 = 6 × (65 – 4) + 346637 = 66 – 4 × 3 – 7 (TG)46640 = 66 – 4 × 4 + 0 (TG)
46641 = 66 – 4 × 4 + 1 (TG)46642 = 66 – 4 × 4 + 2 (TG)46643 = 66 – 4 × 4 + 3 (TG)46644 = 4 + 66 – 4 × 446645 = 66 – 4 × 4 + 5 (TG)
46646 = 66 – 4 × 4 + 6 (TG)46647 = 66 – 4 × 4 + 7 (TG)46648 = 4 × 66 / 4 – 846649 = 66 – 4 × 4 + 9 (TG)46650 = 66 – 5 – 40
46651 = –4 + 6 × 65 – 1 (TG)46652 = –4 + (6 × 6)5–246653 = 66 – (5 + 4)/3 (TG)46655 = 4 + 6 × 65 – 5 (TG)46656 = (–4 × 6 + 6 × 5)6
46657 = 67 / 6 + 5 – 4 (TG)46658 = 6 × 65 + 8 / 4 (TG)46660 = 4 + 66 + 6 × 0 (TG)46661 = 66 + 4 + 1646662 = 62 × 64 + 6
46663 = 4 + 66 + 6 – 3 (TG)46664 = 66 + 4 × (6 – 4) (TG)46665 = 6 × (65 + 6 / 4)46668 = 66 + 6 × 8 / 4 (TG)46672 = 67 / 6 + 42 (TG)
46673 = –4 + 66 + 7 × 3 (TG)46677 = 66 + 4 × 7 – 7 (TG)46684 = –4 + 66 + 8×4 (TG)46688 = (4 + 66 / 8) × 846691 = 66 + 4 × 9 – 1 (TG)
46851 = (4 – 1) × (56 – 8)46875 = (4 + 7 – 8) × 5647538 = 57 × 83447652 = 76 × (54 + 2)48672 = 78 × 624
48750 = 78 × 54 + 048751 = 78 × 54 + 148752 = 78 × 54 + 248753 = 78 × 54 + 348754 = 78 × 54 + 4
48755 = 78 × 54 + 548756 = 78 × 54 + 648757 = 78 × 54 + 748758 = 78 × 54 + 848759 = 78 × 54 + 9
49152 = (4 – 1) × 29+549277 = 9 × 742 – 749584 = 48 × (45 + 9)49855 = 59 × 84549896 = 6 × 84 × 99
49968 = 8 × 9 × 69451200 = 50 × 21051398 = (59 – 1) / 3851759 = 9 × 575152168 = 8 × 6521
52429 = (49 + 2 / 2) / 552483 = 2 × 4 × 38 – 552488 = (5 + 2 – 4)8 × 852493 = 23 × 94 + 552498 = 8 × 94 + 2 × 5
52731 = 217 × 3552947 = 49 / 2 – 5753245 = 52 × 45 – 353248 = 52 × 48–353297 = 2 × 75 + 39
53824 = (8 × (34 – 5))253865 = 63 × 85554369 = (3 + 4) × (65 – 9)54378 = 87 × 54 + 354432 = (4 + 3) × (4 + 2)5
54436 = (4 + 3) × 65 + 454476 = 7 × 65 + 4454642 = 42 × (64 + 5)54726 = 7 × (65 + 42)54768 = 7 × (65 + 48)
54872 = (8 × 5 – 2)7–454953 = 95 – (3 + 5)454958 = 95 – 84 + 555225 = (5 × (52 – 5))255296 = 6 × 9 × 25+5
56295 = 9 × 625556628 = (5 + 8) × 66256732 = 26 × (37 – 5)56875 = 65 × 87557288 = 7 × (25+8 – 8)
57644 = 4 × (6 × 74 + 5)57645 = 57 – 5 × 4658921 = 95 – 28–158957 = 95 – 5 – 8758971 = 95 – 78 × 1
58973 = 95 – 83 + 758978 = 95 – 8 × 8 – 759032 = 95 – 20 + 359038 = 95 – 8 – 3 – 059039 = 95 – 9 – 30
59044 = 95 – 4 – 4059045 = 95 – 4 – 0 × 559046 = 95 – 4 + 6059048 = 95 – 48059049 = 95 + 0 × 4 × 9
59050 = 95 + 50 + 059051 = 95 + 50 + 159052 = 5 + 90+5 – 259053 = 95 + 50 + 359054 = 95 + 50 + 4
59055 = 95 + 50 + 559056 = 95 + 50 + 659057 = 95 + 50 + 759058 = 95 + 50 + 859059 = 95 + 50 + 9
59064 = 95 + 60 / 459094 = 9 × (94 + 5) + 059128 = 95 + 81 – 259129 = 95 + 92 – 159147 = 95 + 7 × 14
59263 = 95 + 63 – 259265 = 95 + 65–259273 = 95 + 7 × 3259313 = 393 – 5 – 1 (TG)59314 = 394–1 – 5 (TG)
59318 = 398–5 – 1 (TG)59319 = 399–5–1 (TG)59375 = (9 + 3 + 7) × 5559392 = 95 + (9 – 2)359409 = 95 + 4 × 90
59451 = 19 × (55 + 4)59759 = ((5 + 9)5 + 7) / 961435 = 5 × (3 × 64 – 1)61440 = 60 × 44+162476 = 4 × ((7 – 2)6 – 6)
62503 = (503 + 6) / 262504 = 4 × (56 + 20)62564 = 4 × 56 + 2662968 = 68 × 92663478 = 48 – 6 × 73
63895 = 65 × 98363904 = 403 – 9663945 = 63 × (–9 + 45)63985 = (8 × 5)3 – 6 – 963994 = (49 – 9)3 – 6
64036 = 403 + 6 × 6 (TG)64512 = 45 × (26 – 1)64513 = 63 × 45 + 164522 = 2542 + 6 (TG)64550 = (64 – 5) × 50
64868 = 48 – 66865344 = 64 × (45 – 3)65471 = –65 + 47+165478 = 48 – 65 + 765480 = 48 – 56 + 0
65481 = 48 – 56 + 165482 = 48 – 56 + 265483 = 48 – 56 + 365484 = 48 – 56 + 465485 = 48 – 56 + 5
65486 = 48 – 56 + 665487 = 48 – 56 + 765488 = 48 – 56 + 865489 = 48 – 56 + 965491 = 169–5 – 45
65528 = 25+5+6 – 8 (TG)65531 = (5 – 3)16 – 5 (TG)65536 = (6 / 3)6+5+5 (TG)65542 = 45+5–2 + 665841 = 48 + 5 × 61
65884 = 48 + 6 × 5866339 = (6 × 6)3 + 3966554 = 65 × 45 – 667149 = 9 × 746167228 = 28 × 76–2
67234 = 6 + 72+3 × 467252 = 2 × 2 × (75 + 6)67254 = 4 × (75 + 6) + 267392 = 72 × 93667950 = 75 × 906
68644 = (44 + 6)8–668800 = 8 × 860069253 = 95 × 36 – 269255 = 95 × (5 – 2)669472 = 67 / 4 – 29
69822 = 862 × 9269895 = 9 × (65 – 9) – 869975 = 67 / (9 – 5) – 969984 = 6–9/9+8 / 469985 = 9 × 65 + 9 – 8
69993 = 96 × 93 + 970225 = (270 – 5)271199 = 9 × 791172576 = 567 × 2773125 = 13 × 752
73926 = 6 × 9 × 37273984 = (8 × 34)9–774183 = 31 × (74 – 8)74353 = 34 × 37 – 574358 = 34 × (8 – 5)7
74533 = 73 × (45 – 3)74536 = 56 × (4 + 7)374892 = (4 + 8) × 79274897 = (87 / 4 + 9) / 775433 = 47 + (3 × 3)5
76335 = 35 × (37 – 6)76832 = 2 × (6 + 8)7–376835 = (6 + 8)5 / 7 + 377459 = 57 – 9 × 7478055 = 58 / 5 – 70
78115 = 57 – 8 – 1 – 178116 = (6 – 1)7 – 8 – 178117 = (7 – 1 – 1)7 – 878123 = (8 – 3)7 – 2 × 178125 = 57 × 182
78126 = (8 – 6 / 2)7 + 178132 = (2 + 3)7 + 8 – 178133 = (3 + 3 – 1)7 + 878135 = 57 + 8 + 3 – 178136 = (6 – 1)7 + 8 + 3
78152 = 57 + 28 – 178163 = (6 – 1)7 + 3878165 = 57 + 8 × (6 – 1)78225 = 57 + (2 + 8)278545 = 57 + 5 × 84
78605 = 57 + 6 × 8078659 = 57 + 6 × 8978732 = (7 + 7 – 2) × 3878975 = 9 × 877579299 = 92 × 979
81225 = 1 × 2852 (TG)81648 = (8 × 8 – 1) × 6481920 = 80 × 29+182372 = 2872 + 382755 = 5 × (75 – 28)
82936 = (3 × 96)2 – 882942 = (4 × 8 × 9)2 – 282944 = (9 × 44 / 8)282952 = (9 × 25)2 + 883357 = 73 × 35 + 8
83521 = (25 – 8)3+1 (TG)83524 = (25 – 8)4 + 3 (TG)83957 = 57 + 8 × 9384375 = 5 × (7 + 8)4 / 384672 = 48 × (6 × 7)2
85264 = (4 × (68 + 5))285293 = (2 × 9 – 5) × 3885358 = (5 + 8) × (38 + 5)86142 = 21 × (84 + 6)86724 = (74 + 8) × 62
87381 = (87 / 8 – 1) / 387382 = (87 / 8 + 2) / 391125 = (9 × 5 × 1)2+191853 = (9 + 5) × 38 – 191854 = (9 + 5) × (4 – 1)8
92160 = 10 × 96293184 = 91 × 48–393217 = 97 × 31293294 = 2 × ((4 × 9)3 – 9)93312 = 2 × (9 × (3 + 1))3
93642 = (9 × 34)2 + 694395 = 93 × (45 – 9)95232 = 93 × 22×595234 = 93 × 45 + 297333 = (39 + 7)3 – 3
97336 = (39 + 7)6–397343 = (49 – 3)3 + 797375 = 779 × 5397966 = 76 – (9 – 6)998256 = 6 × (29+5 – 8)
98304 = 3 × 89–4 + 098305 = 3 × 85 + 9098325 = 3 × (85 + 9 – 2)98375 = 5 × (9 × 37 – 8)98415 = 98–4 × 15 (MR)
98435 = 5 × (39 + 8 – 4)99225 = ((9 – 2) × 9 × 5)2

(TG) = Trevor Green, (MR) = Mike Reid, (PF) = Phillipe Fondanaiche, (JD) = Joe DeVincentis

There is a ton of information on the link provided so I'll leave there. A brief biography of 

MICHAEL FREDERICK ARMSTRONG

Michael Frederick ArmstrongMichael Frederick Armstrong (1941–2020) was a senior computer systems programmer, educator, and prominent software industry leader. While his name is immortalized in recreational mathematics and computer science curricula worldwide through Armstrong numbers, his career extended far beyond that classroom exercise into the foundations of large-scale systems computing.

1. Role at the University of Rochester and the Birth of Armstrong Numbers

In the mid-1960s (circa 1966), Armstrong worked as a senior systems programmer at the University of Rochester Computing Center and occasionally taught programming courses. During this period, mainframe computing was expanding rapidly, and instructors needed novel, computationally intensive exercises to teach students how to write iterative loops, manipulate variables, and handle integer arithmetic using FORTRAN.

To give his students a compelling problem to solve on the university's computers, Armstrong devised a set of integer digit-manipulation definitions. He tasked his students with writing FORTRAN algorithms to search for numbers satisfying these conditions.

Because early 1960s computing hardware was relatively slow and constrained, searching for these digit invariants served as a practical benchmark for algorithm efficiency and loop optimization—a role the problem still fulfills in computer science education today.

2. Armstrong's Original Classification of Numbers

Although broader mathematical literature frequently refers to these figures as narcissistic numbers, pluperfect digital invariants (PPDIs), or plus-perfect numbers, Armstrong himself established four distinct tiers or "kinds" for his classroom assignments:

  • Armstrong Numbers of the First Kind (AN1): This is the definition most commonly referred to simply as an "Armstrong number" today. An integer \(N\) is equal to the sum of its own digits, with each digit raised to the power of the total number of digits \(m\) in the integer:$$\sum_{i=1}^{m} d_i^m = N$$Examples are:
    \(153\) since \(1^3 + 5^3 + 3^3 = 153\)
    \(1634\) since \(1^4 + 6^4 + 3^4 + 4^4 = 1634\). 
    In sequence databases like the OEIS, this forms sequence A005188.

  • Armstrong Numbers of the Second Kind (AN2):Armstrong Numbers of the Second Kind (AN2): Invariants involving sums of products or positional weight calculations based on the base-representation digits.

  • Armstrong Numbers of the Third Kind (AN3): Numbers where each digit \(d\) is raised to the power of itself \(d^d\) and summed to equal the original integer. In modern recreational mathematics, these are formally known as Perfect Digit-to-Digit Invariants (PDDIs) or Munchausen numbers. An examples is \(3435\) since \(3^3 + 4^4 + 3^3 + 5^5 = 3435\)

  • Armstrong Numbers of the Fourth Kind (AN4): Numbers equal to the sum of their digits raised to a fixed arbitrary power \(k\), regardless of the total number of digits the integer contains (now more broadly called Perfect Digital Invariants or PDIs of order \(k\).

Although Armstrong noted later in life that he was not actively drawing from previous 20th-century mathematical literature when drafting his FORTRAN homework sheets, his classroom problem quickly escaped the university setting and became a standard fixture in coding textbooks and programming contests.

3. Leadership in the Computing Industry (SHARE)

Beyond his mathematical eponym, Armstrong spent over five decades as a central figure in the mainframe systems community:

  • Early Involvement: He first attended a SHARE meeting in 1966 representing the University of Rochester. SHARE (founded in 1955) is one of the world's oldest volunteer-run enterprise computing user groups, originally formed by IBM mainframe users to share source code and technical insights.

  • Technical Contributions: Throughout the 1960s and 1970s, Armstrong contributed heavily to foundational enterprise operating system projects, including FORTRAN compiler optimization, Assembly language programming, HASP, OS/MVT-MFT, and VM virtual machine architectures.

  • SHARE Presidency: Entering the leadership track in the early 1980s as Deputy Project Manager for Computer Management and Evaluation, he was elected to the SHARE Board of Directors in 1982. He served a two-year term as President of SHARE from 1986 to 1988, guiding the enterprise computing community through a period of massive industry transition.

4. Enduring Legacy

While the largest base-10 Armstrong number of the first kind is a 39-digit integer 115132219018763992565095597973522401, the concept remains one of the most widely implemented beginner algorithms in computer science. Every year, thousands of students learning C, Python, Java, and FORTRAN encounter Michael F. Armstrong's 1966 classroom exercise as their introduction to modulus digit extraction and loop control.

Erich Friedman: Mathematician and Puzzler

Erich J. Friedman (born 1965 in West Lafayette, Indiana) is an American mathematician, educator, and prolific puzzle designer. While he is most widely recognized in recreational mathematics for defining Friedman numbers, his career encompasses a broad range of mathematical and computational disciplines. He spent 26 years as a professor of mathematics at Stetson University in DeLand, Florida, before retiring in 2018.

Academic Background and Research

Friedman earned his B.S. from Rose-Hulman Institute of Technology in 1987. He went on to complete his Ph.D. at Cornell University in 1991 under the supervision of Rick Durrett, where his initial focus was on interacting particle systems.

While his early academic roots were in probability, his published research frequently tackled discrete mathematics and geometry:

  • Geometrical Packing: Friedman made significant contributions to the problem of packing equal squares into a larger square. This is a computationally intense problem where he improved the best-known upper bounds for various configurations (for example, finding tighter bounds for \( n = 26 \) up through \( n = 88 \) squares).

  • Computational Complexity of Games:Computational Complexity of Games: Bridging logic and computer science, Friedman published multiple papers proving that various solitaire and logic puzzles—such as Spiral Galaxies, Push-k (block pushing), and Cubic—are NP-complete.

Contributions to Recreational Mathematics

Friedman is a central figure in modern recreational number theory. For years, he maintained popular online resources, including the "Math Magic" monthly problem series and the "What's Special About This Number?" database.

Friedman Numbers Introduced by Friedman in August 2000, a Friedman number is a positive integer that can be represented in a non-trivial way using all of its own digits in combination with the basic arithmetic operators (( +, -, \times, \div )), additive inverses, parentheses, and exponentiation.

Examples of base-10 Friedman numbers include:

  • \( 25 = 5^2 \)

  • \( 126 = 6 \times 21 \)

  • \( 347 = 7^3 + 4 \)

  • \( 1024 = (4 - 2)^{10} \)

These numbers form sequence A036057 in the On-Line Encyclopedia of Integer Sequences (OEIS).A036057 In 2002, Friedman's deep involvement in integer sequence research led to him serving as an Associate Editor for the OEIS.

Nice Friedman Numbers A highly sought-after subset of these are "nice" or "strong" Friedman numbers, where the mathematical expression uses the digits in the exact same order they appear in the integer itself. For instance:

  • \( 127 = -1 + 2^7 \)

  • \( 2592 = 2^5 \times 9^2 \)

Analyzing the density of these numbers, generating sequences of repdigit Friedman numbers (such as ( 99999999 )), and finding solutions in bases other than 10 are highly amenable to algorithm scripting and brute-force computational searches.

Puzzle Design and Personal Interests

Beyond formal mathematics, Friedman is an internationally acclaimed logic puzzle designer. He has created spatial, mathematical, and logic puzzles for the U.S. Puzzle Championship, the World Puzzle Championship, and magazines like Games and World of Puzzles.GamesWorld of Puzzles Several of his physical wooden puzzle designs have even been mass-produced.

Outside of his mathematical publications, Friedman has noted his passion for playing strategic games like chess, Go, and backgammon. He is also a self-described juggler and builder of card houses.