In an "old school" projection booth two goats were munching a celluloid version of "Gone with the wind".
After a while both agreed that the book was definitely better.
Assuming that the quality ratio is 9
(according to my taste) list all possible solutions (19, I believe) of the following alphametic:
STORY/FILM=9 ....... (i)
Rem: 3 solutions out of 19 are zero-free !
d4 Bonus:
Instead of the number 9 select another integer N and define #(N) as the number of distinct solutions of the alphametic (i) with a ratio n.
Solve the alphametic.
List the values of #(N) for N=2,3,4,....8.
(In reply to
re: computer solutions, with an extension of the bonus by Jer)
n=8 still has the most (46):
25496/3187
36712/4589
36728/4591
37512/4689
37528/4691
38152/4769
41896/5237
42968/5371
46312/5789
46328/5791
46712/5839
47136/5892
47328/5916
47368/5921
51832/6479
53928/6741
54312/6789
54328/6791
54712/6839
56984/7123
58496/7312
58912/7364
59328/7416
59368/7421
63152/7894
63528/7941
65392/8174
65432/8179
67152/8394
67352/8419
67512/8439
71456/8932
71536/8942
71624/8953
71632/8954
73248/9156
73264/9158
73456/9182
74528/9316
74568/9321
74816/9352
75328/9416
75368/9421
76184/9523
76248/9531
76328/9541
n #(n) zero free
2 12
3 2
4 4
5 12
6 3
7 7
8 46
9 3
12 4
13 3
14 8
15 2
16 3
17 27
18 1
19 2
22 1
23 3
24 2
26 9
27 4
28 1
29 2
32 1
35 5
37 1
38 2
43 1
44 5
46 1
52 1
53 4
59 1
62 2
66 1
68 1
The only change to the code was making the string not include a zero:
st$ = "123456789"
and of course I tested for 8's to be displayed.
The solution for 68, the largest, is 98736/1452.
|
Posted by Charlie
on 2019-02-19 11:19:31 |