Search results for "module:Math::NumSeq"
Math::NumSeq - number sequences
This is a base class for some number sequences. Sequence objects can iterate through values and some sequences have random access and/or a predicate test. The idea is to generate things like squares or primes in a generic way. Some sequences, like sq...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::All - all integers
The non-negative integers 0,1,2,3,4, etc. As a module this is trivial, but it helps put all integers into things using NumSeq....
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Odd - odd integers
The odd integers 1, 3, 5, 7, 9, 11, ... starting i=0...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::OEIS - number sequence by OEIS A-number
This module selects a "NumSeq" by an A-number of Sloane's Online Encyclopedia of Integer Sequences. If there's "NumSeq" code implementing the sequence then that's used, otherwise local downloaded OEIS files if available. See Math::NumSeq::OEIS::Catal...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Pell - Pell numbers
The Pell numbers 0, 1, 2, 5, 12, 29, 70, 169, 408, 985, 2378, 5741, 13860, ... starting i=0 where P[k] = 2*P[k-1] + P[k-2] starting P[0]=0 and P[1]=1...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::File - sequence read from a file
A sequence of values read from a file. This is designed to read a file of numbers in NumSeq style. The intention is to be flexible about the file format and to auto-detect as far as possible. Currently the only format is plain text, either a single v...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Runs - runs of consecutive integers
This is various kinds of runs of integers. The "runs_type" parameter (a string) can be "0toN" 0, 0,1, 0,1,2, 0,1,2,3, etc runs 0..N "1toN" 1, 1,2, 1,2,3, 1,2,3,4, etc runs 1..N "1to2N" 1,2, 1,2,3,4, 1,2,3,4,5,6 etc runs 1..2N "1to2N+1" 1, 1,2,3, 1,2,...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Even - even integers
The even integers, 0, 2, 4, 6, 8, 10, ... starting i=0...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Cubes - cubes i**3
The sequence of cubes i**3, 0, 1, 8, 27, 64, 125, ......
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::PlanePathN - sequence of N values from PlanePath module
This module presents N values from a "Math::PlanePath" as a sequence. The default is the X axis, or the "line_type" parameter (a string) can choose among "X_axis" X axis (positive part) "Y_axis" Y axis (positive part) "X_neg" X negative axis "Y_neg" ...
KRYDE/Math-PlanePath-129 - 19 Jan 2021 06:32:01 UTC
Math::NumSeq::Pronic - pronic numbers
The pronic numbers i*(i+1), 0, 2, 6, 12, 20, 30, ... starting i=0 These are twice the triangular numbers, and half way between the perfect squares....
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Modulo - remainders modulo of a given number
A simple sequence of remainders to a given modulus of a given number, for example modulus 5 gives 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, etc....
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Perrin - Perrin sequence
The Perrin sequence, 3, 0, 2, 3, 2, 5, 5, 7, 10, 12, 17, 22, 29, 39, 51, ... (A001608) which is the recurrence P(i) = P(i-2) + P(i-3) starting from 3,0,2. So for example 29 is 12+17. 12, 17, 22, 29 | | ^ | | | +---+---add-+...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Emirps - primes backwards and forwards
The "emirps", being numbers which are primes backwards and forwards. For example 157 is an emirp because both 157 and its reverse 751 are primes. Prime palindromes are excluded. The default base is decimal, or the "radix" parameter can select another...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Primes - prime numbers
The prime numbers, not divisible by anything except themselves and 1. 2, 3, 5, 7, 11, 13, 17, 19, ... (A000040) starting i=1 Currently this is implemented with "Math::Prime::XS" generating blocks of primes with a sieve of Eratosthenes. The result is ...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Totient - Euler's totient function, count of coprimes
Euler's totient function, being the count of integers coprime to i, 1, 1, 2, 2, 4, 2, 6, 4, etc (A000010) starting i=1 For example i=6 has no common factor with 1 or 5, so the totient is 2. The totient can be calculated from the prime factorization b...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Aronson - Aronson's sequence
The "Math::Aronson" module presented in the style of "Math::NumSeq"....
KRYDE/Math-Aronson-10 - 03 Mar 2019 05:42:22 UTC
Math::NumSeq::Beastly - numbers containing digits "666"
This sequence is the beastly numbers which are those with "666" somewhere in their digits. The default is decimal, or a radix can be given. 666, 1666, 2666, 3666, 4666, 5666, 6660, 6661, 6662, ..., 6669, 7666, 8666, 9666, etc...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::Squares - perfect squares
The sequence of squares i**2, 0, 1, 4, 9, 16, 25, ... (A000290)...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC
Math::NumSeq::ReRound - sequence from repeated rounding up
This is the sequence of values formed by repeatedly rounding up to a multiple of i-1, i-2, ..., 2, 1. 1, 2, 4, 6, 10, 12, 18, 22, 30, 34, 42, 48, 58, 60, 78, ... starting i=1 For example i=5 start at 5, round up to a multiple of 4 to give 8, then rou...
KRYDE/Math-NumSeq-75 - 04 Jun 2022 12:11:23 UTC