How to resolve the algorithm Disarium numbers step by step in the RPL programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Disarium numbers step by step in the RPL programming language

Table of Contents

Problem Statement

A Disarium number is an integer where the sum of each digit raised to the power of its position in the number, is equal to the number.

135 is a Disarium number: 11 + 32 + 53 == 1 + 9 + 125 == 135 There are a finite number of Disarium numbers.

Let's start with the solution: