smooth-numbers Questions

6

I am trying to generate a list of all multiples which can be represented by the form , where a, b, and c are whole numbers. I tried the following, [ a * b * c | a <- map (2^) [0..], b &lt...
Kirima asked 27/11, 2018 at 23:42

8

Solved

Regular numbers are numbers that evenly divide powers of 60. As an example, 602 = 3600 = 48 × 75, so both 48 and 75 are divisors of a power of 60. Thus, they are also regular numbers. This is a...
Bespatter asked 11/2, 2012 at 18:16

21

Solved

A friend of mine is interviewing for a job. One of the interview questions got me thinking, just wanted some feedback. There are 2 non-negative integers: i and j. Given the following equation, fin...
Crassus asked 31/3, 2011 at 20:27

10

How do you print numbers of form 2^i * 5^j in increasing order. For eg: 1, 2, 4, 5, 8, 10, 16, 20
Subcontract asked 27/9, 2011 at 15:45

4

Solved

I have a set of prime numbers and I have to generate integers using only those prime factors in increasing order. For example, if the set is p = {2, 5} then my integers should be 1, 2, 4, 5, 8, 10...
Hirundine asked 12/4, 2012 at 15:2
1

© 2022 - 2024 — McMap. All rights reserved.