Problem of the Month (April 2004)
Strobogrammatic numbers (SNs) are numbers that are the same when viewed upside down: 0, 1, 8, 11, 69, 88, 96, .... These are sequence 000787 at the Encyclopedia of Integer Sequences. This month we consider Strobogrammatic Expressions (SEs): mathematical expressions that describe the same number when viewed upside down. Only the digits 0, 1, 6, 8, and 9, addition, subtraction, multiplication, division, exponentiation, and parentheses are allowed. I was also convinced to allow subscripts so 69 means "6 in base 9". Here are some simple examples: 91–8/8–16, 68+68+61, and 9(9–6), which describe the numbers 74, 197, and 729 respectively.
Every number can be represented by a SE of the form 1+1+1+.... What are the shortest (in terms of the minimum number of symbols used) SEs that represent the integers from 1 to 100? We are particularly interested in shortest SEs that do not use any SNs.
ANSWERS
Joseph DeVincentis and Richard Sabey sent SEs for 1-100, many of which beat my best.
Jeremy Galvagni found lots of SEs involving exponents.
Philippe Fondanaiche sent alternatives to some shortest expressions.
Gavin Theobald improved some expressions.
Expressions that look identical upside down are shown in red.
Shortest Known Strobogrammatic Expressions
Number | Symbols | Shortest SE
|
---|
1 | 1 | 1
2 | 3 | 1+1
3 | 3 | 9–6
4 | 5 | 9–6+1
| 5 | 5 | 61–19
6 | 2 | 69 (GT)
7 | 4 | 69+1 (GT)
8 | 1 | 8
| 9 | 3 | 8+1 916
| 10 | 5 | 91+16 1+8+1 916+1
| 11 | 2 | 11
| 12 | 4 | 11+1 1111 (GT)
13 | 6 | 1+11+1
| 14 | 4 | 69+8 (GT)
15 | 3 | 6+9
| 16 | 3 | 8+8
| 17 | 5 | 8+1+8 8+916 69+11 (GT)
18 | 5 | 18181
| 19 | 4 | 11+8
| 20 | 6 | 11+8+1
| 21 | 5 | 89–68
| 22 | 5 | 11+11
| 23 | 5 | 6+8+9
| 24 | 5 | 8+8+8
| 25 | 7 | 8+8+8+1 8+916+8 69+8+11 (GT) 99–8–66 (GT)
26 | 6 | 6+11+9
| 27 | 6 | 8+11+8
| 28 | 8 | 8+11+1+8 8+11+916 11+69+11 (GT)
29 | 7 | 89–68+8
| 30 | 7 | 6+6+9+9 11+8+11 191–161 696–666 (GT)
31 | 7 | 6+8+8+9
| 32 | 7 | 8+8+8+8 99–1–66
| 33 | 5 | 99–66
| 34 | 7 | 99–66+1 61–8–19 (JD)
35 | 8 | 8+8+8+11
| | | | | | | | | | | | | |
| |
Number | Symbols | Shortest SE
|
---|
36 | 5 | 61+19 (GT) 69×69 (GT)
37 | 7 | 61+19+1 (GT) 69×69+1 (GT)
38 | 9 | 6+6+8+9+9 11+8+8+11 101+18–81 (JD)
39 | 8 | 99–66+69 (GT)
40 | 8 | 8(61–19)
| 41 | 7 | 61–1–19
| 42 | 5 | 61–19
| 43 | 7 | 61–19+1
| 44 | 7 | 61+19+8 (GT) 69×69+8 (GT)
45 | 7 | 9×9–6×6
| 46 | 6 | 6/9×69 (JD)
47 | 8 | 6/9×69+1 (JD) 69×69+11 (GT)
48 | 4 | 69×8 (GT)
49 | 6 | 69×8+1 (GT)
50 | 7 | 61–19+8
| 51 | 7 | 6×9+6–9
| 52 | 8 | 81–11–18
| 53 | 7 | 611–899 (GT)
54 | 3 | 6×9
| 55 | 5 | 6×9+1
| 56 | 6 | 69×8+8 (GT)
57 | 7 | 6×9+9–6 618+819 (GT)
58 | 8 | 69+6–8–9 (GT)
59 | 7 | 69×8+11 (GT)
60 | 6 | 69+6×9 (GT)
61 | 5 | 61119
| 62 | 5 | 6×9+8
| 63 | 5 | 81–18
| 64 | 3 | 8×8
| 65 | 5 | 8×8+1
| 66 | 5 | 66199 69×11 (GT)
67 | 7 | 681–189 661+199 66199+1 8×8+9–6 91–8–16 (JD) 69×11+1 (GT)
68 | 5 | 68189
| 69 | 2 | 69
| 70 | 4 | 69+1 1961 (GT)
71 | 6 | 1+69+1
| | | | | | | | | | | | | | | | | | |
| |
Number | Symbols | Shortest SE
|
---|
72 | 5 | 8×8+8 (RS)
73 | 7 | 8×8+8+1 (RS)
74 | 7 | 91–1–16 66199+8 111×6/9 (GT) 69×11+8 (GT)
75 | 5 | 91–16 69+69 (GT)
76 | 7 | 91–16+1 68189+8 69+1961 (GT)
77 | 4 | 69+8
| 78 | 6 | 69+8+1 69+916
| 79 | 7 | 9+8×8+6 (GT) 819+618 (GT)
80 | 5 | 69+11 61+19 (PF)
81 | 5 | 81118
| 82 | 7 | 811+118 81118+1
| 83 | 7 | 91–16+8 69+69+8 (GT)
84 | 6 | 6+69+9
| 85 | 6 | 88+6–9
| 86 | 5 | 86198
| 87 | 7 | 861+198 86198+1
| 88 | 2 | 88
| 89 | 4 | 88+1 1881 (GT)
90 | 6 | 1+88+1
| 91 | 5 | 91116
92 | 7 | 911+116 91116+1 86+69–0 (GT)
93 | 6 | 96+6–9
| 94 | 5 | 69+88 (GT)
95 | 7 | 961–196 (GT) 69+1881 (GT)
96 | 2 | 96
| 97 | 4 | 96+1 1691 (GT)
98 | 5 | 98186
| 99 | 5 | 88+11 99166 81+18 (PF)
100 | 7 | 88+11+1 99166+1 81+1+18 (PF) 1181+18 (GT)
| | | | | | | | | | | | | | | |
|
Richard Sabey sent solutions for many other numbers less than 1000 as well.
Joseph DeVincentis also sent some SEs that are different expressions upside down. Here are some short primitive expressions that can be used to manufacture other examples.
Number | Symbols | Shortest Non-Symmetric SE
|
---|
1 | 3 | 161
|
10 | 8 | 81+10+16
|
16 | 8 | 61+9+16
|
17 | 6 | 981–81
|
62 | 8 | 811+0–19
|
87 | 8 | 98+0–111
|
100 | 8 | 98+18+19
|
If you can extend any of these results, please
e-mail me.
Click here to go back to Math Magic. Last updated 4/23/06.