Метод | Описание | |
---|---|---|
fibonacci ( integer $n ) : array | Fibonacci numbers Every number is the sum of the two preceding ones. | |
heptagonalNumber ( integer $n ) : array | Heptagonal numbers Figurate numbers that represent heptagons. | |
hexagonalNumber ( integer $n ) : array | Hexagonal numbers Figurate numbers that represent hexagons. | |
lazyCaterers ( integer $n ) : array | Lazy caterer's sequence (central polygonal numbers) Describes the maximum number of pieces of a circle that can be made with a given number of straight cuts. | |
lookAndSay ( integer $n ) : array | Look-and-say sequence (describe the previous term!) (Sequence A005150 in the OEIS) | |
lucasNumber ( integer $n ) : array | Lucas numbers Every number is the sum of its two immediate previous terms. | |
magicSquares ( integer $n ) : array | Magic squares series The constant sum in every row, column and diagonal of a magic square is called the magic constant or magic sum, M. | |
pellNumber ( integer $n ) : array | Pell numbers The denominators of the closest rational approximations to the square root of 2. | |
pentagonalNumber ( integer $n ) : array | Pentagonal numbers Figurate numbers that represent pentagons. | |
triangularNumber ( integer $n ) : array | Triangular numbers Figurate numbers that represent equilateral triangles. |
public static heptagonalNumber ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array | Indexed from 1 |
public static hexagonalNumber ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array | Indexed from 1 |
public static lazyCaterers ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array |
public static lookAndSay ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array | of strings indexed from 1 |
public static lucasNumber ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array | Indexed from 0 |
public static magicSquares ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array |
public static pellNumber ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array | Indexed from 0 |
public static pentagonalNumber ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array | Indexed from 1 |
public static triangularNumber ( integer $n ) : array | ||
$n | integer | How many numbers in the sequence |
Результат | array | Indexed from 1 |