A097385 a(n) = (largest digit of n)^(smallest digit of n) + n.
1, 2, 6, 30, 260, 3130, 46662, 823550, 16777224, 387420498, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 21, 23, 26, 32, 40, 50, 62, 76, 92, 110, 31, 34, 41, 60, 98, 160, 252, 380, 550, 768, 41, 45, 58, 107, 300, 670, 1342, 2448, 4144, 6610, 51, 56, 77, 178, 679, 3180
Offset: 0
Examples
a(2345) = 2370 because 5^2 + 2345 = 2370.
Links
- Mia Boudreau, Table of n, a(n) for n = 0..10000
Programs
-
Python
def a(n): return int(max(s:=str(n)))**int(min(s)) + n print([a(n) for n in range(56)]) # Michael S. Branicky, Jul 21 2025
Formula
Extensions
a(0) corrected and 2 terms merged by Mia Boudreau, Jul 16 2025