Discovering a specific function and creating them.

rndr

New member
Joined
Jun 2, 2020
Messages
4
So I don't really know where to post this. Sorry if it's in the wrong one.

It's not a textbook question. Basically what I'm trying to figure out is the function used to find a certain amount up to a given term, I'm not sure that's how to explain it but I will give an example:

The output is always 10 times greater than the input, So if I input 1111 from the table below I will get 11110 but It will consume the 1111, the idea is to get it as close to 10000 as possible but also within a certain amount of terms and a finite amount of resources so to speak.

1111-1230-1300-1500-1700-1900-2100-2400-2600-2800[18641 /10 ]
3200-3510-3920-4360-4800-5400-6000-6700-7400-8200[ 72,131/20 ]
9100-10100-11300-12500-13900-15400-17200-19000-21200-23500[ 225,331/30 ]
26100-29000-32300-35900-39800-42000-48900-54400-60400-67100[ 661,231/40 ]
74600-82900-92000-102300-113600-126300-140400-156000-173300-192500[1,915,131/50 ]
213900-237700-264100-293400-326020-362250-402500-447200-496900-552130[5,511,231 /60]
613500-681600-757360-841520-935020-1038910-1154350-1282610-1425130-1583460[15,824,691/70 ]
1759410-1954900-2172111-2413457-2681610-2979575-3310640-3678488-4087210-4541343[45,403,435/80 ]

Here it takes 45,403,435 resources to get to the 80th term, no matter which number is selected, the outcome will always give +10000

What I am asking for is a function that works like this but I can input a finite term and a specific amount of resources to always give me +x on whichever term is chosen

For instance, How would the function look like if I wanted 100 terms maximum but only had 400,000 resources to split it up into to gain the maximum amount of "profit" each time.

The other question I have is How would I be able to make an increasing amount up to a certain term with the same rules of

1) A certain amount of resources to start with

2) A finite of nth terms

For Instance here
309-652-1033-1456-1926-2449-3029-3674-4391-5188[24,107/10]
6073-7056-8149-9363-10711-12210-13875-15725-17781-20065[145,115/20]
22603-25423-28557-32038-35906-40205-44980-50287-56183-62734[544,031/30]
70013-78101-87087-97072-108167-111816-124548-138695-154415-171880[1,607,724/40]
191287-212849-236808-263428-293007-325872-362388-402962-448044-498135[4,842,504/50]
553792-648967-688049-764808-850095-944858-1050151-1167143-1297134-1441569[14,249,070/60]

The rules are the same with this one, the amount given is always 10x the number but the original number is consumed.

The outcome is always ~2777 resources higher depending on the previous one, So If the outcome chooses the first one, I will have roughly 3090 - 309 which is 2781, close enough to 2777. But If it chooses the second number, It will return 6520 - 652 = 5868 increasing it's value by another ~2777

I hope I have demonstrated the things needed to help me.

If you have questions about it, I might be able to give more information.

Thanks alot for looking at it! <3
 
… the function used to find a certain amount …
… but It will consume the 1111, the idea is to get it as close to 10000 as possible …
… a certain amount of terms and a finite amount of resources so to speak …
Hello rndr. The phrase "a certain amount" is too vague, to understand what you're thinking about. Please describe quantities completely, using specific nouns.

It will help also to type nouns, instead of pronouns. For example, what do your pronouns 'it' represent, above?

Again, the phrase "resources so to speak" could mean a lot of different things. Can you explain specifically what you're talking about?

Please don't type subtraction signs or division signs to mean something other than subtraction or division. If you're not trying to express arithmetic, then pick different symbols or use English words to state what you mean. Thanks!

… The output is always 10 times greater than the input …
f(x) = 10x

If you now want to alter 10x in various ways, depending on circumstances that change from situation to situation, then you're looking for an algorithm, not a function. That is, you want an ordered list of steps to complete. Is your ultimate goal to write a computer program?

?
 
Thanks for the reply!

So I've been thinking about this most of the day as to how better describe it.

The original creator of the table, made it with what looked like a simple function but I don't have contact with him or remember the function. But I suppose an algorithm could work as well but I don't think it's needed.

Basically I have access to an RNG bot, based on math.random, i'm not a coder(yet) so I wouldn't have any idea how it's coded. But I know it's probability is pretty much 1/20 chance to win or thereabout if you want some insight of what I'm trying to work out. This isn't included in any of the math because math.random isn't really calculable.

I decided to graph my results, or well write them down. 90% of the time I would win below 80 spins/rolls whatever you want to call them. and the other 10% were above 80. My highest so far is 89 spins.

Just something to pass the time when I'm bored and I wondered if I had a certain amount of currency, (x) (it's not real money gambling don't worry. I'm just theory crafting because I enjoy it) and wanted to spread the currency out to the point that no matter what number I landed on, It would always be more coins then I had spent through each spin.

To clarify, the 10x part is not really necessary as it is a constant and doesn't need to be calculated in. If it's included or not, nothing changes as the bot already applies the 10 times (x number you win) So If I put in 10 and the bot said I won, the bot would give me 100 coins. It already does that part of the calculation.

I suppose what I'm looking for is, if you look in the second table I previously showed. It takes 14,249,070 coins to spin 60 times, each spin increases the profit by an exact number. Either a function or algorithm that does exactly this. It takes in (x), Divides it by the total number of spins (a), And creates a sequence of numbers that will increase by the highest set amount it can without going over x or a


It doesn't have to be completely specific i.e It can fall short of x. such that if I put in say 200,000 as x and the return only uses 197,xxx, thats fine. if I put a number put into the function and the return is a decimal then I will manually just round it to the nearest whole number.

I know that even with all of this, because it's math.random I can still lose no matter how many spins I could go up to. But would like to see how it could be possible to make this just like my friend did, If I recall. he made a function that doesn't do the last part I was asking, the "creates a sequence of numbers that will increase by the highest set amount it can without going over x or a".

Sorry for the long wall of text, I hope that helps!

Thanks!
 
… I know [the RNG bot's] probability is pretty much 1/20 chance to win … if you want some insight …
… 90% of the time I would win below 80 spins/rolls whatever you want to call them …
… no matter what number I landed on, It would always be more coins then I had spent through each spin …
Okay, it seems like you're using a random number generator to simulate outcomes in some type of game-of-chance involving hypothetical wagers. Ninety percent of your winning games happened with less than 80 numbers having been generated by the bot. Is that correct?

It would be helpful, as a starting point for readers, were you to completely describe the game you're playing (eg: definitions, rules, payouts possible).

?
 
Hmm, I think the bot doesn't really have anything to do with it if I'm honest, I think it would be a lot simpler if I could just find the function used in the first and second example. I tried but it doesn't seem to be possible for me anyway. Are you able to find it? Because then I can just slightly tweak it to get every outcome I need, although it would be more manual as I would have to input from one to however many terms I'd want.

If not then I don't really have any idea of what to do ^^
 
… the bot doesn't really have anything to do with it …
Okay. (I can't really tell which statements are relevant or not.)

… if I could just find the function used in the first and second example … Are you able to find it?
No, not currently. I don't understand what those examples represent. (I suggested why, in post #2.)

I don't know anything about the function's domain or range. There's not enough context, for me to become motivated to think about functional relationships.

I hope somebody else can help you.

?
 
Top