Post #2658776
2026-05-06 09:09 UTC
@christianp@mathstodon.xyz Wow! This extra ≈n^0.5 term actually precisely matches the index of n in a(n), when it is in the sequence (which happens very often, as mentioned) ! 😮 So for these cases we get
a(n) = n(n+3)/2 - a.index(n)
See the updated gist https://gist.github.com/hellman/a4a56f013085edf379ac6377db0fa9bb
Replies (1)
-
@hellman@mathstodon.xyz 2026-05-06 09:12
@christianp@mathstodon.xyz This seems to happen always when n in a(n) (even if the diff matches n).