Advertisement
Guest User

dedekinds

a guest
Aug 30th, 2023
113
0
118 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.31 KB | None | 0 0
  1. from math import *
  2. from decimal import *
  3. d = Decimal
  4. getcontext().prec = 512
  5.  
  6. d9 = d('286386577668298411128469151667598498812366')
  7. d8 = d('56130437228687557907788')
  8. d7 = d('2414682040998')
  9. d6 = d('7828354') #((5**d(10))-(5**d(9)))+((((5+168)*2)+7581)*2) just for funs
  10. d5 = d('7581')
  11. d4 = d('168')
  12. d3 = d('20')
  13. d2 = d('6')
  14. d1 = d('3')
  15. d0 = d('2')
  16.  
  17. '''
  18. It is trivial to show the following...
  19.  
  20. >>> (log(d1, pi) / log(d0, d3))
  21. 4.147811090177013
  22. >>> (log(d2, pi) / log(d1, d3))
  23. 4.268106353358759
  24. >>>
  25. >>> (log(d3, pi) / log(d2, d3))
  26. 4.375455454718115
  27. >>> (log(d3, pi) / log(d2, d4))
  28. 7.483871753620199
  29. >>> (log(d3, pi) / log(d2, d3))
  30. 4.375455454718115
  31. >>> (log(d4, pi) / log(d3, d3))
  32. 4.4761336650184775
  33. >>> (log(d5, pi) / log(d4, d3))
  34. 4.562582269225801
  35. >>> (log(d6, pi) / log(d5, d3))
  36. 4.649961795684958
  37. >>> (log(d7, pi) / log(d6, d3))
  38. 4.700785337247993
  39. >>> (log(d8, pi) / log(d7, d3))
  40. 4.8077858456397955
  41. >>> (log(d9, pi) / log(d8, d3))
  42. 4.769043170541039
  43.  
  44. The ratio of the logs of d8 and d7 are higher than the subsequent quotient of the log of d9 to d8, but the quotient of d9 to d8 is, critically, not lower than the previous quotient. The values in the series generally increase, so this demonstrates a soft bound.
  45.  
  46. Based on this if we output the results...
  47. '''
  48.  
  49. print(d(e)**((d(log(d9, d3))*d('4.769043170541039'))*d(log(pi))))
  50.  
  51. '''
  52. We see that this generally agrees with the estimate here: https://devrant.com/rants/8464960/though-i-demonstrated-a-hard-upperbound-on-the-d-10-dedekind-in-the-link-here-ht
  53.  
  54. And is well within the bounds given on my post.
  55.  
  56. If we assign these values to a variable, and look at the ratio of each subsequent pair, as a sliding window, like so..
  57. '''
  58.  
  59. r = [4.147811090177013, 4.268106353358759, 4.375455454718115, 4.4761336650184775, 4.562582269225801, 4.649961795684958, 4.700785337247993, 4.8077858456397955, 4.769043170541039]
  60.  
  61. r.reverse()
  62.  
  63. '''
  64.  
  65. A couple samples shows us that
  66. >>> r[0]/r[1]
  67. 0.991941680361264
  68. >>> r[1]/r[2]
  69. 1.0227622621998826
  70. >>> r[2]/r[3]
  71. 1.0109298836842482
  72. >>> r[3]/r[4]
  73. 1.019151331702778
  74.  
  75. And following from that..
  76. >>> 1/0.991941680361264
  77. 1.0081237836843404
  78. >>> 1.0109298836842482/(1/0.991941680361264)
  79. 1.0027834875491703
  80.  
  81. Seems like a big jump, but except for that aberration, previous pairs had a ratio of
  82. >>> 1.019151331702778/1.0109298836842482
  83. 1.00813256008277
  84.  
  85. Which is actually in line with the expected rate.
  86.  
  87. So if we multiply r[0] by 1.0081237836843404, we should get the quotient for the logarithms of D(10) to D(9)
  88.  
  89. '''
  90.  
  91. d10log = r[0]*1.0081237836843404
  92. print(d10log)
  93. '''
  94.  
  95. should give you 4.8077858456397955
  96.  
  97. with that in hand we do a little math to find an estimate of the next dedekind, D(10)
  98. '''
  99.  
  100. d10est = (d(e)**((d(log(d9, d3))*d('4.8077858456397955'))*d(log(pi)))) / (10**d(76))
  101. print(d10est)
  102.  
  103. '''
  104.  
  105. which should give you a number roughly equal to 1.454560726301921*(10**(76))
  106.  
  107. Given John Cook's estimate, and the fact the logarithmic series here demonstrates a general upward trend, and his lowest bound is 10**75 by heuristic, and the established hard upperbound is 10**83~, and my lowest lower bound is in the range of 10**50-ish,
  108. and we know, based on the series value, that the value can't generally be lower than about 1.454560726301921*(10**(76)),
  109. that means this estimate is very likely *very* close to D(10)
  110. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement