252+403+574+...+4606+3640+...+...+7663+8722=Sn
Find the logic beyond the summands in the above equation
and derive the values of n and Sn .
n term lower s(n)
factor
1 252 12 252
2 403 13 655
3 574 14 1229
4 765 15 1994
5 976 16 2970
6 1207 17 4177
7 1458 18 5635
8 1729 19 7364
9 736 23 8100
10 1008 24 9108
11 1300 25 10408
12 1612 26 12020
13 1944 27 13964
14 2296 28 16260
15 2668 29 18928
16 1462 34 20390
17 1855 35 22245
18 2268 36 24513
19 2701 37 27214
20 3154 38 30368
21 3627 39 33995
22 2430 45 36425
23 2944 46 39369
24 3478 47 42847
25 4032 48 46879
26 4606 49 51485
27 3640 56 55125
28 4275 57 59400
29 4930 58 64330
30 5605 59 69935
31 5092 67 75027
32 5848 68 80875
33 6624 69 87499
34 6786 78 94285
35 7663 79 101948
36 8722 89 110670
n = 36
s(n) = 110,670
For d1 = 1 To 9
For d2 = d1 + 1 To 9
term = (10 * d1 + d2) * (10 * d2 + d1)
termNo = termNo + 1
tot = tot + term
Text1.Text = Text1.Text & termNo & " " & term & " "
Text1.Text = Text1.Text & d1 & d2 & " " & tot & crlf
DoEvents
Next
Next
|
Posted by Charlie
on 2018-12-02 14:05:51 |