- #561
- 19,763
- 25,774
143. How many numbers are there that contain their length as a digit? Example: 1024 has the length 4 and also contains the number 4. Is there a solution without a brute force code?
D131
D131
fresh_42 said:145. What is the smallest natural number with a multiplicative persistence of ##5## in the decimal system?
The multiplicative digit root is the repeated process of multiplying all digits, e.g.
$$
3784 \longrightarrow 672 \longrightarrow 84 \longrightarrow 32 \longrightarrow 6
$$
Tme multiplicative persistence is the number of arrows, iterations. For ##3784## it is ##4##.
D132
fresh_42 said:145. What is the smallest natural number with a multiplicative persistence of ##5## in the decimal system?
The multiplicative digit root is the repeated process of multiplying all digits, e.g.
$$
3784 \longrightarrow 672 \longrightarrow 84 \longrightarrow 32 \longrightarrow 6
$$
Tme multiplicative persistence is the number of arrows, iterations. For ##3784## it is ##4##.
D132
def mp(n,o):
digits = [int(c) for c in str(n)]
prod = 1
for d in digits:
prod = prod * d
if prod < 10:
return o
return mp(prod,o+1)
n = 10
while mp(n,1) < 5:
n+=1
print(n)
Yes, but there also only 48 players for 47 matches each.BvU said:Yeah allright. 47*48/2 Keep nitpicking -- we do too
Takes two to tango they say
Yeah, and I even skipped a couple of others being either obvious or solvable by code. But 146. is more challenging and still open! Or the relatively easy 140.BvU said:We're gliding here, aren't we ? This is high school stuff ! 50 kg
Quite straight forward:fresh_42 said:146. A newly combined class has ##33## students. Each of them introduces themselves by first name and family name. The kids recognize, that some have the same first name and some even the same family name. So every kid writes on the blackboard how many others have the same first name, and how many the same family name, not counting themselves. At the end there are ##66## numbers on the board, and every number ##0,1,2,\ldots, 9,10## occurs at least once.
Are there at least two kids in class with the same first and family name?
D133
fresh_42 said:150. Determine ##\{\,(p_n,p_{n+1},p_{n+2})\in \mathbb{P}\,|\,p^2_n+p^2_{n+1}+p^2_{n+2}\in \mathbb{P}\,\}## where ##\mathbb{P}=\{\,p_1<p_2<\ldots<p_n<\ldots\,\}## is the set of all primes.
Btw, the smallest is ##65##.DrClaude said:##8^2 + 9^2 = 1^2 + 12^2 = 145##
fresh_42 said:## ##
Darn, I missed that one.fresh_42 said:Btw, the smallest is 65.