Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions