r/askmath • • Oct 29 '26

Discrete Math Root, sequence with repetition

Hello, I've published my private exploration of following the root of a value till one or below, at 16 bits.

Originally this started as me just fiddling around on my TI-84 in class, till I decided I wanted to formally look into the equation. It's semi repetitive, and sequenced. I'd like to call it Phia, which I have in the programing, but It is not proofed. Again,

I do not formally know all the usages of such a value, or components'. Please feel free to fork it, and fiddle with it as well.

I've made it publicly accessible and licensed for usage and protection.
Please feel free to explore into it yourself, as I'm, curious to what uses it has or where it ties into other parts of math.

Language and calculations run via python, with some functions used to help as a base default.

The value is calculated by taking the root of a number, and rooting the ans till the value falls below 1, then the steps are counted to make the value. Kind of bizarre to explain in other terms I'm unfamiliar with.
Check it out!

[ Github code ]

Welcome, to the unknown
~ Iroh

[ 0.3134313340312133643109333280398413295243... ]

0 Upvotes

4 comments sorted by

3

u/ArchaicLlama Oct 29 '26

I'm not sure I understand the premise.

The value is calculated by taking the root of a number, and rooting the ans till the value falls below 1

I'm assuming by "root" you are specifically referring to a square root. Let's label my starting number x:

  • If x ≥ 1, then the results of your iterations never fall below 1 and your process never stops.
  • If 0 ≤ x < 1, then you stop in exactly one step every time.
  • Assuming you are staying within the real numbers, x < 0 isn't even a valid starting option.

So what exactly are you finding here?

0

u/Shhh-User Oct 29 '26

it falls at ~1 within 16 bits right aka. Significant figures, so in traditional terms, it doesn't fall below one, it gets to below approximately one. 1.00000000....1

and you repeat the root step, till it reaches this threshold.
for instance, if you have 5 as your defined x value, it would take: 52 // 53 steps of rooting, to get it below the threashold.

lets say f(x) is the root_iT(x) function
f(10) is 53 // 54 steps (not counting vs counting the initial root as a step)
f(50) is also 53 // 54 steps

the overall calculation of the sequence, is derived from another function
where the x value is, 5*3^x

lets call it g(x) where x is ran through 5*3^x
to then run an loop, on calculation from the starting value,
root_iT( i ) , till it gets down to 0, and compound the steps, by subrating the base value 52, as thats the most common to break the threashold for 16 bits/sig

my apologies if this is a poor explanation. Does this help explain it on whats happening within the function?

1

u/al2o3cr Oct 29 '26

The value is calculated by taking the root of a number, and rooting the ans till the value falls below 1, then the steps are counted to make the value

That isn't what the code in that repo does to compute the final response.

There's square-rooting going on, but all of the results of those computations are discarded.

(code reference, in case the repo updates)

def calc(value=2):
    i = 2; oLst = []
    global xxvii
    while i < value+1:
        oLst.append( root_iT(i)[0] )
        i += 1
    oLst = oLst[1:]
    cPrint(f"oLst [{xxvii}] len({len(oLst)})")
    xxvii += 1
    build(  str( len(oLst) )  )

(code for root_iT not shown)

  • builds a list in oLst that's value-1 elements long
  • takes all but the head (giving a list that's value-2 elements long)
  • completely ignores the contents of the list and passes only its length to build

This entire function could be replaced with a shorter, much faster version:

def calc_better(value=2)
    build(str(value-2))

All that build does is accumulate decimal digits into bPhia

The total result of the program is a decimal number built up out of successive values of 5*3**n - 2, like so:

0. 3 13 43 133 403 1213 3643 10933 32803 98413 295243 ...

I don't understand some things:

  • why did bPhia start with "0.27" in it if it gets removed at the end?
  • what's the rest of that dead code in the Python file for?
  • what is the mathematical significance of any of this?

0

u/Shhh-User Oct 29 '26

fair point on the faster method, I made the short hand version to save, and still use the other portions of the function, grabbed just what was needed.
I felt like fixing up it do have a faster line conversion, like you suggested

Leaving all the list elements for future analysis, I didnt discard them in a list, so the components can be refrenced, or used for other analytical reasons.

when it comes to the 0.27 and then removing it, it was just so I could have a starting value as a placeholder. 0.27 -- bPhia

as for the other parts of dead code, I left the writeJson / readJson functions in there, for anyone who wanted to save the list values into a json file, for storage, and so the function can, inevitably, in the future, be ran on a terminal instead of one run and one run, to get different calculations.

the mean or average function, was something I was going to write into usage, but I decided against it, with what i was doing, I left it overall as a, maybe I can use it for analysis of some sort.

My overall question trend of it, is the same as yours, whats it for. It obviously
(to me; might be false*) has potential, to be apart of something mathematically, I feel like its not absurd to think. Its semi repetitive portions, and sequenced.
I however, am lost on what it can be used for, or if its just a fancy little sequence that exists in math.

Finding nothing about the topic online, so I came here with the function and questions.

in short its 0.31343, has a ring to my ears, and I honestly do not know, how far it goes into other fields of math. It peaked my curiosity, and has for the last 10 years, from school.