Problem of the Month (August 2016)

A flash card is a string of digits or arithmetic operations (+ – × /). We allow unary minuses, but no other leading or trailing operations, or leading zeroes. What is the shortest flash card that when repeated multiple times, evaluates to n? For example, the flash card 6+1 repeated twice looks like 6+16+1, which evaluates to 23. Do flash cards like this always exist?

What are the shortest pairs of flash cards that evaluate to n in one order, and n+1 in the other order? What are the 3 shortest flash cards that have different cyclical orders to evaluate to n, n+1, and n+2?

For pairs A and B of flash cards, is it possible that the 4 orders AA, AB, BA, and BB evaluate to 4 consecutive integers? Is this sort of thing possible with larger numbers of flash cards?


ANSWERS

Answers were received from Joe DeVincentis, Jon Palin, Bryce Herdt, and Berend van der Zwaag.

Joe DeVincentis found that –1+2 repeated n times evaluates to n. He also showed that 0×1 repeated n times evaluates to 0. More importantly, he showed that 0×0+n repeated k times evaluates to n.

Here are the smallest known solutions for a single flash card, repeated multiple times:

Flash Cards that Evaluate to n when Repeated Twice
n0123456789
00×10×0+1–1+20×0+3–1+30×0+5–1+40×0+7–1+50×0+9
10–1+61–1+71+1–1+82+1–1+93+1–0+94+1
200–1+25+126+11+27+12+28+13+29+1
304+20–1+35+236+21+37+22+38+23+3
409+24+31×25+346+31+47+32+48+3
503+49+34+40–1+55+456+41+57+42+5
608+43+59+44+50–1+65+566+51+67+5
702+68+53+69+54+65×15+676+61+7
807+62+78+63+79+64+70–1+85+786+7
901+87+72+88+73+89+74+80–1+95+89

Flash Cards that Evaluate to n when Repeated Three Times
n0123456789
00×10×0+10×0+2–1+20×0+40×0+5–1+30×0+70×0+8–1+4
100/5+20/2+1–1+55/5+22/2+1–1+66/6+38/8+4–1+74/8+5
200/5+40+10/2+20/3+31+12/2+23/3+32+15/5+56/6+6
303+18/8+89/9+94+18/2+20/5+75+10×0+375/5+76+1
400/5+84/6+90+25/5+80/2+41+20/3+62/2+42+23/3+6
504/2+43+26/3+66/2+44+20/2+58/2+45+22/2+53×2+1
606+24/2+54+2×10+36/2+55+2×11+38/2+50×0+682+3
701/3+92/3+93+34/3+95/3+94+37/3+98/3+95+32×3+1
802/2+76+30×2+24/2+70+40×0+856/2+71+40/2+88/2+7
902+42/2+80×0+923+44/2+89×2+14+46/2+85+3×15+4

Flash Cards that Evaluate to n when Repeated Four Times
n0123456789
00×10×0+10×0+20×0+3–1+20×0+50×0+60×0+7–1+30×0+9
106/6+15/5+1–1+40/9+30/5+23/3+1–1+59/9+30/6+32/4+2
20–1+60/5+36/6+38/8+4–1+75/5+30/9+61/7+5–1+81/8+6
308/7+50+1–1+96/9+76/6+51+1–0+93/3+34/4+42+1
406/6+67/7+78/8+83+13/7+89/3+36/6+74+19/6+70/5+7
503/6+85+16/6+85/5+79/6+86+13/6+96/4+66/6+97+1
609/6+97/2+30+28+10/2+40–7+31+29+12/2+41/4+8
702+23/4+84/4+85/4+83+27/4+88/4+89/4+84+26+6+1
800/2+53/3+75+26+7+12/2+56/3+76+27+7+10/3+89/3+7
907+27+8+13/3+80+38+28+8+16/3+81+39+20/3+9


Joe DeVincentis found that 0/10 and 1+n evaluate to n and n+1. He found all of the solutions in white below. Here are the smallest known solutions for multiple flash cards, evaluating to consecutive integers:

Flash Card Pairs that Evaluate to n and n+1
n0123456789
0 –0×1
1
0/5
0+1
0/10
1+2
0/10
1+3
0/8
0+4
0/10
1+5
0/10
1+6
0/10
1+7
0/10
1+8
0/9
0+9
10 9/9
–0+9
2
0/2+1
2
2/2+1
2
4/2+1
2
6/2+1
2
8/2+1
0/10
1+16
8
0/5+1
8
5/5+1
0/10
1+19
20 0/10
1+20
1×2
1
1×2
1+1
1×2
2+1
1×2
3+1
1×2
4+1
1×2
5+1
1×2
6+1
1×2
7+1
1×2
8+1
30 1×2
9+1
5×2+2
1
2/2×3
2
6×2+2
1
1
65/5+2
7×2+2
1
1
75/5+2
8×2+2
1
2/2+3
7
4/2+3
7
40 6/2+3
7
8/2+3
7
3×1
4
3/3×4
3
5
5/5×4
3+3×1
4
4+3×1
4
5+3×1
4
6+3×1
4
7+3×1
4
50 8+3×1
4
9+3×1
4
0/10
1+52
0/10
1+53
4/4×5
4
6
6/6×5
4
16/8+5
4
24/8+5
4
32/8+5
4
40/8+5
60 4
48/8+5
4
56/8+5
1×3
1×2
4
72/8+5
4
80/8+5
5/5×6
5
7
7/7×6
0/10
1+67
2+3
3×2
0/10
1+69
70 0/10
1+70
5+2
2×3
0/10
1+72
0/10
1+73
0/10
1+74
0/10
1+75
6/6×7
6
8
8/8×7
2+7
6×1
0/10
1+79
80 0/10
1+80
0/10
1+81
0/10
1+82
0/10
1+83
0/10
1+84
0/10
1+85
0/10
1+86
7/7×8
7
9
9/9×8
0/10
1+89
90 0/10
1+90
0/10
1+91
2×4
5+2
0/10
1+93
0/10
1+94
7+2
2×4
0/10
1+96
0/10
1+98
8/8×9
8
0/10
1+99

Jon Palin found a general solution for triples: 0+(n-8)+9, 0/9, and 0×8. I suspect many shorter solutions exist, but only the ones below are known to be better.

Flash Card Triples that Evaluate
Cyclically to n, n+1, and n+2
n0123456789
0 2
10/42
0×4
(JD)
2+1
0/5
0×5
(JD)
1+2
0/5
0×5
(JD)
3+3
0/6
0×2
(JD)
2+3
5/7
0×4
(JD)
???8+8
0/8
0×1
(JD)
9+9
0/9
0×2
(JD)
10 ?5+2
4/2
0×5
(JD)
?????0/9
0×9
1+18
(JP)
??
20 ??????????
30 ??1
6/9×1
8+2
(JD)
??7
0/5+2
0+1
(JD)
7
5/5+2
0+1
(JD)
7
5/5+2
1+1
(JD)
7
5/5+2
2+1
(JD)
7
5/5+2
3+1
(JD)
40 7
5/5+2
4+1
(JD)
7
5/5+2
5+1
(JD)
7
5/5+2
6+1
(JD)
7
5/5+2
7+1
(JD)
7
5/5+2
8+1
(JD)
7
5/5+2
9+1
(JD)
????
50 ??????????
60 ??????????
70 ??????????
80 ??????????
90 ??????????

Flash Card Pairs so that AA, AB, BA, BB
Evaluate to n, n+1, n+2, and n+3
n0123456789
0 0/5
–1+2
(JD)
–2+3
0×0+3
(JD)
–1+2
0×0+4
(JD)
0/5+1
0/5+2
(JP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1–2+6
(JP)
7+2×2
8+2×2
(JP)
1+6
0+3×2
(JD)
2+5×1
2+6
(JP)
8+5
9+3×1
(JP)
1+2×3
1+2+6
(JP)
70 7+2+5
9+2×2
(JP)
3+6
3+5×1
(JD)
3+1+6
3+5×1
(JP)
1+4+6
2+3×2
(JP)
7
9–9+2×3
(JD)
7
5–3+2×3
(JD)
7
9–7+2×3
(JD)
7
5–1+2×3
(JD)
7+4×1
7+6
(JP)
4+3×2
4+5×1
(JP)
80 2+1+7
2+6×1
(BZ)
5+2×3
6+2×3
(BH)
4+3×2
4+7
(JP)
1–3+8
1+7×1
(BZ)
6+2×3
7+2×3
(BH)
8
9–8+3×2
(JD)
8
7–4+3×2
(JD)
8
9–6+3×2
(JD)
6+3×2
6+7
(JP)
6+1+7
6+3×2
(JP)
90 8+2×3
8+7
(JP)
2+7×1
2+8
(JP)
7+2+7
9+2×3
(JP)
3–1+2×4
3+8
(BZ)
6×1
6–8+9
(JP)
6×1
6–7+9
(JP)
2–3+9
2+4×2
(BZ)
3+2×4
4+2×4
(JP)
2–4+3×3
1+9
(BZ)
0+3×3
1+9
(JP)

Berend van der Zwaag also found 10 flash cards so that all possible pairs evaluate to the numbers 0 through 99. They are: 0–11+2, 0–11+3, ... , 0–11+11.


If you can extend any of these results, please e-mail me. Click here to go back to Math Magic. Last updated 8/26/16.