Balanced number Created 2026-10-20 Updated 2026-11-05
A balanced number is a positive integer whose first decimal digits have the same digit sum as its last decimal digits, where is the number of numerical digits. For odd , the middle numerical digit appears on both sides and cancels, so only the equally long outer halves need to be compared.
For example, is balanced because . It is not a palindromic number: equality of two digit sums does not require reversed digits. At odd length, is balanced because the outer pairs and both sum to three; its middle digit is irrelevant to the equality.
Digit dynamic programming can tabulate counts and value sums of fixed-length halves indexed by digit sum, then match equal indices. The first half must begin with a nonzero numerical digit, while the last half may contain initial zeros, as in . Preserving the half length is essential when assembling the positional value.
Binary palindrome 2026-10-20
A palindromic number in binary representation, with no leading zeros. Every positive binary palindrome is an odd number, because its first and last numerical digits must both be one.
Decimal palindrome 2026-10-20
Lychrel number Created 2026-10-20 Updated 2026-11-05
A Lychrel number is a positive integer whose repeated reverse-and-add process never reaches a palindromic number in the chosen radix. Each step performs digit reversal and adds the reversed integer to the current value. For example, reaches a decimal palindrome in one step, so is not a base-ten Lychrel number.
Failure to reach a palindromic number within a fixed iteration limit establishes only a candidate. It does not prove that every later step also fails. A computation must therefore distinguish a bounded search result from the infinite claim in the definition.
Numeral Created 2026-10-14 Updated 2026-11-05
A numeral is a written expression representing a number. The number five can be written as the decimal numeral , the binary numeral , or the Roman numeral V. The expressions differ while the represented integer is the same.
This distinction matters when an algorithm examines numerical digits. A palindromic number, for example, is defined through its representation in a specified radix, rather than through the appearance of an abstract number. The integer five is a palindrome as the one-digit decimal numeral and as the binary numeral , whereas ten is written in decimal and in binary, neither of which is a palindrome.
Palindromic number 2026-10-20
A nonnegative integer whose positional notation reads the same forwards and backwards, with no leading zeros. This property depends on the base: is a palindromic number in both decimal representation and binary representation, since .