Write the digits of an in their own order and put only + or − between them (neighbouring digits may also be joined into one number). When the result is the base a, we get a semi-selfie representation, for example 213 = 8192 = (8+1−9+2)13 and 273 = 19683 = (1+9+6+8+3)3. The generator finds all such expressions for a range of exponents, and in the second tab it finds patterns of them.
| n | an | digits | representations | reverse type |
|---|
A pattern is a run of semi-selfie numbers whose bases grow in a regular way and whose expressions keep the same signs, for example 121 = (12−1)2, 10201 = (102−01)2, 1002001 = (1002−001)2, 100020001 = (10002−0001)2.
Paste lines such as 2^{13}:=8192=(8+1-9+2)^{13}, 27^3 = (1+9+6+8+3)^3 or pattern lines such as 10201 = (102-01)^2, and reverse-type lines such as 2^{22}:=4194304, reversed 4034914=(4-03-4-9+14)^{22} or 9801 reversed 1089 = (10+89)^2, one per line. Each line is checked: the digits must be those of an in order, and the bracket must give a (or −a for even n).