danielahalesp87vj0
danielahalesp87vj0
24.02.2020 • 
Mathematics

A Dudeney number is a positive integer that is a perfect cube such that the sum of its digits is equal to the cube root of the number. There are exactly seven such integers. Write a function is Dudeney to test if a parameter number is a Dudeney number. Use this function in a program that determines and prints the first 3 Dudeney integers. Then challenge the power of your computer by finding all 7 Dudeney numbers. Make use of the cube root function, cbrt.

Solved
Show answers

Ask an AI advisor a question