Math::N...digitAny(3)

πŸ“¦
version 75 Β· 2 versions
, in fedora 43

πŸ’– Math::N...digitAny(3) πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation, and it's literally called Math::N...digitAny(3) β€” yes the name got truncated, it's giving mysterious, but we move. grab a snack, we're learning about repdigits πŸ“


✨ NAME ✨

Math::NumSeq::RepdigitAny β€” numbers which are a repdigit in any radix


πŸ¦‹ SYNOPSIS πŸ¦‹

use Math::NumSeq::RepdigitAny;
my $seq = Math::NumSeq::RepdigitAny->new;
my ($i, $value) = $seq->next;

🌸 DESCRIPTION 🌸

so the numbers are 0, 7, 13, 15, 21, 26, 31, etc β€” and what makes them special is that each one is a repdigit of 3 or more digits in any radix. periodt.

like, for example:

  • 7 is 111 base 2
  • 26 is 222 base 3
  • 31 is 11111 base 2

etc etc. the way it works is that this is effectively the union of the Repdigits sequence for all radices πŸ’… so instead of checking one radix at a time, you get every number that slays as a repdigit somewhere. iconic behavior honestly.


πŸ‘‘ FUNCTIONS πŸ‘‘

see "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence classes β€” those are the shared vibes every sequence class has. no cap.

  • $seq = Math::NumSeq::RepdigitAny->new () β€” create and return a new sequence object. main character energy, brand new, ready to go ✨
  • $bool = $seq->pred($value) β€” return true if $value is a repdigit of 3 or more digits in some radix. that's the whole vibe check right there 🫢

πŸ”₯ SEE ALSO πŸ”₯

  • Math::NumSeq
  • Math::NumSeq::Repdigits

πŸŽ€ HOME PAGE πŸŽ€

<http://user42.tuxfamily.org/math-numseq/index.html>


πŸ’œ LICENSE πŸ’œ

Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde

Math-NumSeq is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

Math-NumSeq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.

fr fr, that warranty disclaimer is not a joke β€” it's genuinely saying there's no warranty, so don't come for anyone if it breaks πŸ’€

and that's the page bestie 🧚 this was perl v5.42.0, dated 2025-07-25, filed under Math::N...digitAny(3) β€” the truncated little legend. slay, go forth and find ur repdigits πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from