Questions tagged [decimal-expansion]

For questions about decimal expansion, both practical and theoretical.

A number can be represented in many different ways, but the most common is via its decimal expansion. Such a representation takes the form

$$a_na_{n-1}\dots a_1a_0.a_{-1}a_{-2}\dots$$

where $a_n \in \{1, 2, \dots, 9\}$ and $a_i \in \{0, 1, 2, \dots, 9\}$ for $i = n - 1, n - 2, \dots, 1, 0, -1, -2, \dots$. In the case that there is $N > 0$ such that $a_i = 0$ for all $i < -N$, these numbers are supressed in which case the decimal expansion usually appears as

$$a_na_{n-1}\dots a_1a_0.a_{-1}a_{-2}\dots a_{-N}.$$

Note that concatenation does not represent multiplication, it is just a part of the notation. The . between $a_0$ and $a_{-1}$ does not represent multiplication either; it is sometimes called the decimal point.

To put the notation on a rigorous footing, the expression $a_na_{n-1}\dots a_1a_0.a_{-1}a_{-2}\dots$ is shorthand for

$$\sum_{i = 0}^na_i10^i + \sum_{i=1}^{\infty}a_{-i}\frac{1}{10^i} = \sum_{i = -\infty}^na_i10^i$$

which can be shown to be convergent irrespective of the choice of $a_i$.

1243 questions
0
votes
1 answer

Why $(n^x +n^{x+2})$ is divisible by $5$ for some $n$ and not for others.

Why for numbers with last digits $0, 2, 3, 5, 7$ and $8, (n^x +n^{x+2})/5$ is a whole number and for numbers with last digits $1, 4, 6$ and $9, (n^x +n^{x+2})/5$ is not a whole number?
0
votes
1 answer

how to get n digits of a given number?

I have very large number. I have to operate first n digits from left. Is there a command in Mathematica that will give n digits of a given number something like xxxxx[123456789, 5]=12345? IntegerPart[N[number/10^n]]is generating internal errors.
0
votes
3 answers

Is there exist a formula to calculate sum of digits of an integer

I'm the novice, sorry if I can't ask more specifically. If the given number is 2-digits integer. We have sum = number*20%199%19. Can you prove the above formula? And if it is an n-digits integer, what is the formula? Thanks so much!
0
votes
1 answer

The period length of the decimal expression for a rational number $1/n$ has lower bound $1$.

Theorem: For an integer $n$ greater than or equal to $2$, the period length of the decimal expression for the rational number $1/n$ is at most $n-1$ and has lower bound $1$. For the first part I found this page (Period of the decimal expression for…
Safwane
  • 3,840
0
votes
2 answers

What is 0.22222... equal to? Here '...' Represent infinite time.

I have seen that 0.99999... equal to 1. But what about 0.2222...? Do it also equal to some finite number? If yes then what is it? And how do you know?
user663117
0
votes
0 answers

Is there a formula for the reverse sequence of a repetend?

@DavidK Did you ever expand on the reverse sequence/ backward sequence from this thread? Doubling sequences of the cyclic decimal parts of the fraction numbers "I'll give some thought to what can be said about that in not too many words." The right…
0
votes
1 answer

Decimal to octal transformation

52.8 div 8 = 6.6 mod 4.8 6 div 8 =0.75 mod 6 The result is 64.8 Is that correct? I'm quite confused with 4.8
Chika
  • 1
0
votes
1 answer

Simplify binary expansion

Let $Bin[n]$ denote the binary expansion of integer $n$. Does there exist a simplification of the formula $Bin[\sum a_i 2^i]$ ? Clearly when $a_i \in \{0,1\}$, then the $a_i$ already represent binary digits, but what about $a_i \in \mathbb{Z}$ ?
conchild
  • 159
0
votes
1 answer

Unclear possible rounding in converting decimal to octal number

I am doing computer science homework that wants me to write 3 pieces of code. I just started and basically I have to write a program that converts a decimal number to octal number. I looked at the professors example of the process and a you tube…
Bob G.
  • 3
0
votes
4 answers

Is it possible to determine if a number is infinitely long?

Is it possible to determine if a number is infinitely long? For example, is the $ \sqrt 5 $ infinitely long? i.e As a decimal number, will it continue forever or will it come to an end? Is there a way that we can calculate this?
0
votes
1 answer

Digit sum of $x$ consisting of only 3,4,5,6 = digit sum of $2x$

$x$ is a positive integer such that its digits can only be $3$,$4$,$5$, $6$. $x$ contains at least one copy of each of these four digits. The sum of the digits of $x$ is $900$ and the sum of the digits of $2x$ is also $900$. How many digits are…
0
votes
2 answers

What is $2^{32} - 1$ in decimal notation?

I came across decimal notation, and surprisingly I have never heard of it. I have heard of scientific notation and just thought this was decimal notation. However, when I want to find a definition on the internet, it isn’t clear. Could somebody…
Mr Pie
  • 9,459
0
votes
1 answer

How do you determine unique pairs of rational ratios of decimals?

This seems like a fairly simple question and I hope that it's just not my own stupidity guiding it. What i'm asking is that you could show any decimal as a ratio of rationals but in any situation how do you determine this. Here is an example ratio…
0
votes
1 answer

Can someone put this decimal expansion equation into layman's terms please?

I am studying this page on decimal expansion. I understand everything up until the strange equation following this sentence. The strange equation is directly above this sentence. I do not think it cares that I am typing about it or that you are…
0
votes
1 answer

Formula for smallest possible positive value with given decimal places count

There is a project I'm working on which gives me a decimal places count for values which I have to work with. Now I need to calculate the smallest possible positive value with the mentioned count of decimal places. For example: I need a formula…