Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Using a list comprehension in Haskell, find the sum of all numbers from 1 to n that are odd multiples of 3 and 7.
2.
Using a list comprehension in Haskell, find the sum of all numbers from 1 to n that are odd multiples of 3
and 7.
3.
The eight divisors of 24 are 1, 2, 3, 4, 6, 8, 12 and 24. The ten numbers not exceeding 100 having
exactly eight divisors are 24, 30, 40, 42, 54, 56, 66, 70, 78 and 88. Let f(n) be the count of numbers
not exceeding n with exactly eight divisors. You are given f(100) = 10 and f(1000) = 180. Find
f(104) in Haskell.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started