-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
; A015543: Inverse of 1534th cyclotomic polynomial. | ||
; Submitted by Science United | ||
; 1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,0,0,0,0,0,0,0,0 | ||
|
||
mov $3,3 | ||
add $0,3 | ||
lpb $0 | ||
sub $3,$4 | ||
mov $4,2 | ||
sub $0,$3 | ||
mov $2,$0 | ||
max $2,0 | ||
mov $1,-1 | ||
pow $1,$2 | ||
seq $2,15088 ; Inverse of 1079th cyclotomic polynomial. | ||
mul $2,$1 | ||
add $3,7 | ||
bin $3,2 | ||
add $3,16 | ||
lpe | ||
mov $0,$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
; A045048: Numbers whose base-4 representation contains exactly two 0's and one 2. | ||
; Submitted by Science United | ||
; 32,66,72,96,129,131,132,140,144,176,194,200,224,262,265,267,270,274,280,289,291,292,300,306,312,322,328,352,385,387,388,396,400,432,450,456,480,517,519,525,527,529,531,532,540,561 | ||
|
||
add $0,1 | ||
mov $1,2 | ||
mov $2,$0 | ||
add $2,6 | ||
pow $2,3 | ||
lpb $2 | ||
mov $4,1 | ||
mov $3,$1 | ||
lpb $3 | ||
mov $5,$3 | ||
mod $5,4 | ||
gcd $5,10 | ||
mul $5,$4 | ||
div $3,4 | ||
max $4,$5 | ||
lpe | ||
dif $4,2 | ||
div $4,28 | ||
sub $4,1 | ||
mov $3,$4 | ||
equ $3,2 | ||
sub $0,$3 | ||
add $1,1 | ||
sub $2,$0 | ||
lpe | ||
mov $0,$1 | ||
mul $0,2 | ||
add $0,10923 | ||
div $0,2 | ||
sub $0,5461 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
; A045053: Numbers whose base-4 representation contains exactly three 0's and one 2. | ||
; Submitted by shiva | ||
; 128,258,264,288,384,513,515,516,524,528,560,576,704,770,776,800,896,1030,1033,1035,1038,1042,1048,1057,1059,1060,1068,1074,1080,1090,1096,1120,1153,1155,1156,1164,1168,1200,1218,1224 | ||
|
||
add $0,1 | ||
mov $2,250047 | ||
lpb $2 | ||
mov $4,1 | ||
mov $3,$1 | ||
lpb $3 | ||
mov $5,$3 | ||
add $5,10 | ||
mod $5,4 | ||
gcd $5,10 | ||
mul $5,$4 | ||
div $3,4 | ||
max $4,$5 | ||
lpe | ||
div $4,28 | ||
mov $3,$4 | ||
equ $3,2 | ||
sub $0,$3 | ||
add $1,1 | ||
sub $2,$0 | ||
lpe | ||
mov $0,$1 | ||
mul $0,2 | ||
add $0,10923 | ||
div $0,2 | ||
sub $0,5461 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
; A045116: Numbers whose base-4 representation contains exactly one 1 and two 3's. | ||
; Submitted by Science United | ||
; 31,55,61,79,111,115,123,124,126,159,183,189,199,205,211,219,220,222,231,237,241,244,246,249,271,303,307,315,316,318,399,431,435,443,444,446,451,459,460,462,483,491,492,494,496,498 | ||
|
||
mov $2,$0 | ||
add $0,1 | ||
add $2,7 | ||
pow $2,3 | ||
lpb $2 | ||
mov $4,1 | ||
mov $3,$1 | ||
lpb $3 | ||
mov $5,$3 | ||
sub $5,1 | ||
mod $5,4 | ||
gcd $5,10 | ||
mul $5,$4 | ||
div $3,4 | ||
max $4,$5 | ||
lpe | ||
mul $4,3 | ||
dif $4,2 | ||
div $4,28 | ||
mov $3,$4 | ||
equ $3,2 | ||
sub $0,$3 | ||
add $1,1 | ||
sub $2,$0 | ||
lpe | ||
mov $0,$1 | ||
mul $0,2 | ||
add $0,10923 | ||
div $0,2 | ||
sub $0,5461 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
; A045130: Numbers whose base-4 representation contains exactly four 1's and one 3. | ||
; Submitted by Vato | ||
; 343,349,373,469,853,1111,1117,1141,1237,1303,1309,1333,1351,1357,1363,1371,1372,1374,1383,1389,1393,1396,1398,1401,1431,1437,1461,1477,1489,1492,1494,1497,1509,1623,1629,1653,1749 | ||
|
||
mov $2,$0 | ||
add $0,1 | ||
add $2,7 | ||
mul $2,9 | ||
pow $2,3 | ||
lpb $2 | ||
mov $4,1 | ||
mov $3,$1 | ||
lpb $3 | ||
mov $5,$3 | ||
add $5,1 | ||
mod $5,4 | ||
gcd $5,10 | ||
mul $5,$4 | ||
div $3,4 | ||
max $4,$5 | ||
lpe | ||
dif $4,2 | ||
div $4,28 | ||
mov $3,$4 | ||
equ $3,2 | ||
sub $0,$3 | ||
add $1,1 | ||
sub $2,$0 | ||
lpe | ||
mov $0,$1 | ||
mul $0,2 | ||
add $0,10923 | ||
div $0,2 | ||
sub $0,5461 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
; A075771: Let n^2 = q*prime(n) + r with 0 <= r < prime(n); then a(n) = q + r. | ||
; Submitted by roundup | ||
; 1,2,5,4,5,12,17,10,15,16,31,36,9,28,41,48,57,24,31,50,9,16,37,48,49,76,15,42,85,116,79,114,137,52,41,96,121,148,27,52,79,144,139,16,65,136,109,84,141,220,49,86,169,166,209,254,33,124,169,240,55,48,297,66,169,248,199,256,263,28,113,172,205,268,333,46,109,144,241,280 | ||
|
||
add $0,1 | ||
mov $1,$0 | ||
mul $1,$0 | ||
mov $4,$0 | ||
pow $4,5 | ||
lpb $4 | ||
mov $2,$3 | ||
seq $2,365605 ; Characteristic function of numbers without an inferior odd divisor > 1. | ||
sub $0,$2 | ||
add $3,2 | ||
sub $4,$0 | ||
lpe | ||
mov $0,$3 | ||
add $0,1 | ||
max $0,2 | ||
dis $1,$0 | ||
mov $0,$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
; A375325: a(n) is the number of divisors of n which are Loeschian numbers (A003136). | ||
; Submitted by Ralfy | ||
; 1,1,2,2,1,2,2,2,3,1,1,4,2,2,2,3,1,3,2,2,4,1,1,4,2,2,4,4,1,2,2,3,2,1,2,6,2,2,4,2,1,4,2,2,3,1,1,6,3,2,2,4,1,4,1,4,4,1,1,4,2,2,6,4,2,2,2,2,2,2,1,6,2,2,4,4,2,4,2,3 | ||
|
||
mov $2,$0 | ||
add $2,1 | ||
mov $4,$0 | ||
add $4,1 | ||
lpb $4 | ||
sub $4,1 | ||
mov $0,$2 | ||
sub $0,$4 | ||
mov $1,$0 | ||
gcd $1,$4 | ||
bin $1,$0 | ||
seq $0,353816 ; a(n) = 1 if n is a number of the form x^2 + xy + y^2, otherwise 0. | ||
mul $1,$0 | ||
add $3,$1 | ||
lpe | ||
mov $0,$3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
; A376397: a(n) = A276075(n!), where A276075 is the factorial base log-function. | ||
; Submitted by Science United | ||
; 0,1,3,5,11,14,38,41,45,52,172,176,896,921,929,933,5973,5978,46298,46306,46332,46453,409333,409338,409350,410071,410077,410103,4038903,4038912,43955712,43955717,43955839,43960880,43960910,43960916,522962516,523002837,523003559,523003568,6750024368,6750024395,93928315595,93928315717,93928315727,93928678608,1401603046608,1401603046614,1401603046662,1401603046675,1401603051717,1401603052439,22324392940439,22324392940446,22324392940572,22324392940599,22324392980921,22324396609722,378011824705722 | ||
|
||
mov $3,$0 | ||
mov $1,$0 | ||
lpb $1 | ||
sub $1,1 | ||
mov $0,$3 | ||
sub $0,$1 | ||
seq $0,108951 ; Primorial inflation of n: Fully multiplicative with a(p) = p# for prime p, where x# is the primorial A034386(x). | ||
sub $0,1 | ||
seq $0,124859 ; Multiplicative with p^e -> primorial(e), p prime and e > 0. | ||
sub $0,1 | ||
seq $0,112623 ; If p^b(p,n) is the highest power of the prime p dividing n, then a(n) = sum_{p|n} b(p,n)!. | ||
add $2,$0 | ||
lpe | ||
mov $0,$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
; A376884: Number of binary n-sequences ending in 1 with exactly one more occurrence of 11 than 10. | ||
; Submitted by Science United | ||
; 0,0,1,1,1,4,7,10,23,46,79,157,315,588,1137,2249,4337,8402,16495,32179,62707,122916,240837,471456,925061,1816610,3566865,7010347,13789477,27130956,53409503,105205514,207309743,408672454,805989367,1590166915,3138371715 | ||
|
||
add $0,2 | ||
lpb $0 | ||
sub $0,1 | ||
sub $2,1 | ||
add $2,$0 | ||
bin $2,$0 | ||
mov $3,$4 | ||
bin $3,$1 | ||
mul $3,$2 | ||
trn $0,2 | ||
add $1,1 | ||
mov $2,$1 | ||
add $4,2 | ||
add $5,$3 | ||
lpe | ||
mov $0,$5 | ||
div $0,2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
; A377109: a(n) = coefficient of the term that is independent of sqrt(2), sqrt(3), and sqrt(6) in the expansion of (2 + sqrt(2) + sqrt(3))^n. | ||
; Submitted by Science United | ||
; 1,2,9,38,185,922,4689,23998,123217,633458,3258489,16765718,86273225,443967370,2284733313,11757749038,60508271137,311391065570,1602499602537,8246883961094,42440638964825,218410733951098,1123999345270833,5784397706237854 | ||
|
||
mov $2,$0 | ||
mov $4,$0 | ||
lpb $4 | ||
trn $4,1 | ||
mov $0,$2 | ||
sub $0,$4 | ||
mov $1,$0 | ||
add $1,$4 | ||
bin $1,$0 | ||
seq $0,188570 ; a(n) = coefficient of the term that is independent of sqrt(2) and sqrt(3) in the expansion of (1 + sqrt(2) + sqrt(3))^n. | ||
mul $1,$0 | ||
add $3,$1 | ||
lpe | ||
mov $0,$3 | ||
add $0,1 |