W
W
wasya_uk2021-11-13 19:17:13
Mathematics
wasya_uk, 2021-11-13 19:17:13

Is there a service for creating a formula for a number?

Is there a service or application to create a formula to get a certain number.

For example: I will send 172
as a result I will get 13sqr+3

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Sokolov, 2021-11-13
@sergiks

Try WolframAlpha
If factoring was meant, google Found number factorization
, for example, alpertron.com.ar/ECM.HTM
Enter a number and press the Factor
button If you are looking for the nearest square of an integer, write your solution.

W
Wataru, 2021-11-13
@wataru

Why service? Here is the formula for any number X = (X-1) + 1. For example, 172 = 171+1.
Or do you need some special property of the formula?

H
hint000, 2021-11-14
@hint000

For example 289374892374892738947234 I will get the formula where the max number is 20

An elementary program with recursion can be written to decompose a number of any length. Here is an example where the max number is 20, you can do it for a maximum of 1000 or for a maximum of 10. If the maximum is set less than 10, then you will have to slightly complicate the method (but not so much complicate it).
289374892374892738947234=4*10^0+3*10^1+2*10^2+7*10^3+...(I'm too lazy to write down all the digits of a long number)...+3*10^20+9* 10^(1*10^0+2*10^1)+8*10^(2*10^0+2*10^1)+2*10^(3*10^0+2*10^1 )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question