# Questions tagged [digits]

Questions dealing with the manipulation of the digits of numbers, including the functions RealDigits and IntegerDigits.

38 questions
Filter by
Sorted by
Tagged with
135 views

### Is this result for the leading digits of $2^{2^{2^{32}}}$ accurate?

I have used Mathematica to compute the leading digits of very large powers. My largest calculation was to find the first digits of $2^{2^{2^{32}}}$, whose number of digits is itself a number of over a ...
• 361
182 views

### DigitCount[], but in negative bases

The DigitCount[n,b] function "counts the gives a list of the numbers of $1, 2, \ldots, b-1, 0$ digits in the base-$b$ representation of $n$". I want to ...
• 1,009
98 views

### Test if the decimal digits of $n$ appear $n$ times in the decimal representation of $n!$

I want to find numbers $n$ for which the decimal digits of $n$ appear $n$ times in the decimal representation of $n!$. For instance, $n\in\left\{0, 1, 1170, 1528, 9877, 9886, 9897, 11535\right\}$ are ...
• 2,001
1 vote
77 views

### Extracting digits of a real number with RealDigits produces unexpected result

I have a list of real numbers, each of which has two decimal places. I'm trying to extract the second digit after the decimal point. The function I'm using is ...
• 1,291
1 vote
77 views

### Digits product and an iteration process

I would like to create a code which gives me the square of the product of the digits of a number, with the only rule that if a number has a 0, then it doesn't count in the product (for example, if the ...
• 239
99 views

### How to create a function that merges the first $n$-digits of each value in a list?

Suppose we have a list of numbers. For example, A={1231,1232,1233,1241,1236} Using a function f[x,A], I want to rearrange this ...
• 71
477 views

• 2,465
142 views

• 8,958
310 views

### Convert real number to IBM 32 Float (not IEEE)

How can I convert real number to IBM 32 Float? I think how to do it with RealDigits[], IntegerDigits[] and ...
• 648
1 vote
136 views

### How can I Influence the number of digits when printing a polynomial expression or when I want to make it a String?

I have an expession (it is the result of Fit) but I want to print or display an abbreviated form with all numbers in it rounded to say 6 decimal digits. ...
• 2,818
1 vote
62 views

### Convert numerical solution to RealDigits

It can be determined that Solve[Gamma[x] == 2*Sqrt[Pi], x] yields a solution of x as ...
• 365
148 views

### Sum of squared digits returns incorrect result

For the sake of practicing writing code, I've given myself an exercise in writing a script that checks whether a given positive integer is happy, i.e. take the digits of a number, square them, and add ...
• 1,611