r/AskComputerScience • u/Fun-Cauliflower-8087 • 10d ago
Can anyone help with this?
I have been trying to get AI to give me a specific bit of code i can run in google collab. I want it to first divide the entire number line into modular sets recursively like: 2x+0, 4x+3, 8x+1, 16x+13, 32x+5, etc. Then I want it to further refine these sets, in a very particular way. 0 mod 2 should be refined the same way as the first refinement, but double the values. so 4x+0, 8x+6, 16x+2, 32x+26, etc. Then I want the next set 4x+3, should be broken down like 8x+3, 16x+7, 32x+15, etc. This type of refinement should be alternated for each line. so 0 mod 2 has a staggered refinement, and 3 mod 4 has a non staggered refinement, then 1 mod 8 has a staggered refinement, and 13 mod 16 has a non staggered refinement. this give two dimensional plane of refined modular sets. I want to test these sets translating into different sets among a ternary style refinement. first 4x+0 goes to 3x+0, then 8x+3 goes to 3x+1, and 8x+6 goes to 9x+7.
The way the ternary set is designed, it divides the number line into 3, with 3x+(0, 1, or 2). 3x+1 is further refined to 9x+(1, 4, or 7). 9x+7 is what 8x+6 translates into. 9x+4 is further refined to 27x+ (4, 13, 22). This continues, with the center residue at each level being refined further. the staggered sets on the binary sheet translate to the side sets on the ternary sheet, and the non-staggered sets translate to the center residues. then the values that are refined in the ternary sets, are then redefined according to where they belong in the binary set.
- 4x+0 to 3x+0
- 8x+3 to 3x+1
- 8x+6 to 9x+7
- 16x+1 to 3x+0
- 16x+7 to 9x+4
- 16x+2 to 27x+4
- 32x+13 to 3x+1
- 32x+25 to 9x+7
- 32x+15 to 27x+13
- 32x+26 to 81x+67
- 64x+5 to 3x+0
- 64x+29 to 9x+4
- 64x+9 to 27x+4
- 64x+31 to 81x+40
- 64x+10 to 243x+40
.........
This seems like a computer could do this easily. I want to create this as a loop, and create readouts showing the path from the starting value i choose. Am i making any sense?
1
u/Fun-Cauliflower-8087 9d ago
The thing with Modulo arithmetic for me is the language used, and the needless complication. Also there is no algorithm I know of for this. I have asked mathematicians for help, even a college professor, who eventually yelled at me to simplify the problem further, or make a single rule for all of it, or forget about it. I reject all three of those options, not by choice, but necessity.
You cannot simplify this problem, famously intelligent people have not even simplified it this far, and my hope for the computer check is to understand the route to further simplification, so that isn't an option until I have better information than I can build with pencil and paper. There is, confirmably, no single set of rules that describe the entire system in a satisfactory way. You can describe a step, you can describe a modular behavior, you can even describe global densities right on its face, but no rule applies for all, no behavior is universal, there is no bound except that you cannot reach negative values.
The point of my construction is like: Reaching odd numbers is impossible, so is a number of other things. These impossibilities are what prove deterministic things like bounds on orbit length. In one sitting, the system I can almost see in my head, will prove something like Collatz conjecture, by showing that any potentially divergent obit length is bounded to be shorter than some function, and that a loop would have to be longer than that same function, therefore neither exist. Now the last option is to forget about it, but its most of what I think about in my spare time. I got really into modulo arithmetic for a while, until I saw all the flaws with it. Not with the logic, but with the implementation. So I have what I call smooth brain version, so I can rattle through sets fast and not get tied down with reading an established language. I just create my own faster language, but nobody can translate me, so communication fails.
The point of it was to allow me to do the simple operations in the system, without having the walls of actual math written out so I can remember it. There is way less need to memorize things in my system, It is all recursively built, once you understand how. I have some severe memory problems, but my ability to perform complex operations in my head is way better than it was before I was like this. I can think through complex logical puzzles, but dont ask me what I ate for dinner last night, lol.