cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-7 of 7 results.

A300837 a(n) is the total number of terms (1-digits) in Zeckendorf representation of all divisors of n.

Original entry on oeis.org

1, 2, 2, 4, 2, 5, 3, 5, 4, 5, 3, 10, 2, 6, 5, 7, 4, 9, 4, 10, 5, 6, 3, 13, 5, 5, 7, 11, 3, 13, 4, 10, 8, 6, 6, 16, 3, 8, 5, 14, 4, 12, 4, 11, 10, 8, 3, 18, 6, 11, 9, 10, 5, 16, 5, 14, 7, 6, 4, 23, 4, 8, 9, 13, 6, 16, 5, 10, 7, 14, 4, 23, 4, 8, 12, 12, 8, 13, 4, 20, 10, 9, 5, 23, 9, 9, 8, 17, 2, 22, 6, 12, 8, 6, 8, 24, 3, 12, 13, 19, 5, 15, 4, 14, 13
Offset: 1

Views

Author

Antti Karttunen, Mar 18 2018

Keywords

Examples

			For n=12, its divisors are 1, 2, 3, 4, 6 and 12. Zeckendorf-representations (A014417) of these numbers are 1, 10, 100, 101, 1001 and 10101. Total number of 1's present is 10 (ten), thus a(12) = 10.
		

Crossrefs

Programs

  • PARI
    A072649(n) = { my(m); if(n<1, 0, m=0; until(fibonacci(m)>n, m++); m-2); }; \\ From A072649
    A007895(n) = { my(s=0); while(n>0, s++; n -= fibonacci(1+A072649(n))); (s); };
    A300837(n) = sumdiv(n,d,A007895(d));

Formula

a(n) = Sum_{d|n} A007895(d).
a(n) = A300836(n) + A007895(n).
For all n >=1, a(n) >= A005086(n).

A300834 a(n) = Product_{d|n, dA019565(A003714(d)), where A003714(n) is the n-th Fibbinary number.

Original entry on oeis.org

1, 2, 2, 6, 2, 30, 2, 60, 10, 42, 2, 4200, 2, 126, 70, 660, 2, 9240, 2, 13860, 210, 330, 2, 5082000, 14, 78, 220, 32760, 2, 3783780, 2, 42900, 550, 780, 294, 924924000, 2, 1092, 130, 41621580, 2, 3898440, 2, 112200, 60060, 306, 2, 28078050000, 42, 235620, 1300, 92820, 2, 200119920, 770, 128648520, 1820, 1122, 2, 424964656116000, 2, 3366
Offset: 1

Views

Author

Antti Karttunen, Mar 18 2018

Keywords

Crossrefs

Cf. A003714, A019565, A300835 (rgs-transform of this sequence), A300836.

Programs

  • PARI
    A072649(n) = { my(m); if(n<1, 0, m=0; until(fibonacci(m)>n, m++); m-2); }; \\ From A072649
    A003714(n) = { my(s=0,w); while(n>2, w = A072649(n); s += 2^(w-1); n -= fibonacci(w+1)); (s+n); }
    A019565(n) = {my(j,v); factorback(Mat(vector(if(n, #n=vecextract(binary(n), "-1..1")), j, [prime(j), n[j]])~))}; \\ From A019565
    A300834(n) = { my(m=1); fordiv(n,d,if(d < n,m *= A019565(A003714(d)))); m; };

Formula

a(n) = Product_{d|n, dA019565(A003714(d)).
For n >= 1, A001222(a(n)) = A300836(n).

A300835 Restricted growth sequence transform of A300834, product_{d|n, dA019565(A003714(d)); Filter sequence related to Zeckendorf-representations of proper divisors of n.

Original entry on oeis.org

1, 2, 2, 3, 2, 4, 2, 5, 6, 7, 2, 8, 2, 9, 10, 11, 2, 12, 2, 13, 14, 15, 2, 16, 17, 18, 19, 20, 2, 21, 2, 22, 23, 24, 25, 26, 2, 27, 28, 29, 2, 30, 2, 31, 32, 33, 2, 34, 7, 35, 36, 37, 2, 38, 39, 40, 41, 42, 2, 43, 2, 44, 45, 46, 47, 48, 2, 49, 50, 51, 2, 52, 2, 53, 54, 55, 56, 57, 2, 58, 59, 60, 2, 61, 41, 62, 63, 64, 2, 65, 66, 67, 68, 69
Offset: 1

Views

Author

Antti Karttunen, Mar 18 2018

Keywords

Comments

For all i, j: a(i) = a(j) => A001065(i) = A001065(j).
For all i, j: a(i) = a(j) => A300836(i) = A300836(j).

Examples

			For cases n=10 and 49, we see that 10 has proper divisors 1, 2 and 5 and these have Zeckendorf-representations (A014417) 1, 10 and 1000, while 49 has proper divisors 1 and 7 and these have Zeckendorf-representations 1 and 1010. When these Zeckendorf-representations are summed (columnwise without carries), result in both cases is 1011, thus a(10) = a(49).
		

Crossrefs

Cf. also A293215, A293217, A293223, A293224, A293232, A300833 for similar filtering sequences.

Programs

  • PARI
    up_to = 65537;
    rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om,invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om,invec[i],i); outvec[i] = u; u++ )); outvec; };
    write_to_bfile(start_offset,vec,bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); }
    A072649(n) = { my(m); if(n<1, 0, m=0; until(fibonacci(m)>n, m++); m-2); }; \\ From A072649
    A003714(n) = { my(s=0,w); while(n>2, w = A072649(n); s += 2^(w-1); n -= fibonacci(w+1)); (s+n); }
    A019565(n) = {my(j,v); factorback(Mat(vector(if(n, #n=vecextract(binary(n), "-1..1")), j, [prime(j), n[j]])~))}; \\ From A019565
    A300834(n) = { my(m=1); fordiv(n,d,if(d < n,m *= A019565(A003714(d)))); m; };
    write_to_bfile(1,rgs_transform(vector(up_to,n,A300834(n))),"b300835.txt");

A304095 a(n) is the number of the proper divisors of n that are Lucas numbers larger than 3 (4, 7, 11, 18, ...).

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 1, 0, 1, 2, 0, 0, 0, 1, 0, 1, 0, 2, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 2, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 0, 0, 1, 2, 0, 0, 1, 0, 0, 0, 2, 0, 0, 1, 2, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 2, 0, 1, 0, 2, 0, 0, 0, 2, 0, 0, 1, 1
Offset: 1

Views

Author

Antti Karttunen, May 13 2018

Keywords

Comments

a(n) is the number of the proper divisors d of n that are of the form d = A000045(k-1) + A000045(k+1), for k >= 3.

Examples

			The proper divisors of 28 are 1, 2, 4, 7 and 14. Of these 4 and 7 are Lucas numbers (A000032) larger than 3, thus a(28) = 2.
		

Crossrefs

Programs

  • PARI
    A102460(n) = { my(u1=1,u2=3,old_u1); if(n<=2,sign(n),while(n>u2,old_u1=u1;u1=u2;u2=old_u1+u2);(u2==n)); };
    A304095(n) = sumdiv(n,d,(d>3)*(dA102460(d));

Formula

a(n) = Sum_{d|n, d>3, dA102460(d).
a(n) = A007949(A304102(n)).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = A093540 - 4/3 = 0.629524... . - Amiram Eldar, Jul 05 2025

A304103 Restricted growth sequence transform of A304102, a filter sequence related to the proper divisors of n expressed in Fibonacci number system.

Original entry on oeis.org

1, 2, 2, 3, 2, 4, 2, 5, 3, 4, 2, 6, 2, 5, 4, 7, 2, 8, 2, 6, 5, 5, 2, 9, 3, 4, 10, 11, 2, 12, 2, 6, 5, 13, 5, 14, 2, 13, 4, 9, 2, 15, 2, 11, 8, 10, 2, 16, 17, 18, 13, 6, 2, 19, 5, 20, 13, 5, 2, 21, 2, 13, 6, 22, 4, 23, 2, 24, 10, 25, 2, 26, 2, 10, 18, 27, 28, 12, 2, 29, 30, 13, 2, 31, 13, 32, 5, 33, 2, 34, 5, 35, 13, 5, 13, 21, 2, 36, 37, 38, 2, 39, 2, 9, 15
Offset: 1

Views

Author

Antti Karttunen, May 13 2018

Keywords

Comments

For all i, j: a(i) = a(j) => b(i) = b(j), where b can be any of {A000005, A293435, A304095 or A300836} for example.

Crossrefs

Cf. also A300835, A304105, A305800.
Cf. A305793 (analogous filter for base 2).

Programs

  • PARI
    \\ Needs also code from A304101.
    up_to = 65537;
    rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om,invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om,invec[i],i); outvec[i] = u; u++ )); outvec; };
    write_to_bfile(start_offset,vec,bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); }
    A304102(n) = { my(m=1); fordiv(n,d,if(dA304101(d)-1))); (m); };
    write_to_bfile(1,rgs_transform(vector(up_to,n,A304102(n))),"b304103.txt");

A304091 a(n) is the number of the proper divisors of n that are Lucas numbers (A000032, with 2 included).

Original entry on oeis.org

0, 1, 1, 2, 1, 3, 1, 3, 2, 2, 1, 4, 1, 3, 2, 3, 1, 3, 1, 3, 3, 3, 1, 4, 1, 2, 2, 4, 1, 3, 1, 3, 3, 2, 2, 5, 1, 2, 2, 3, 1, 4, 1, 4, 2, 2, 1, 4, 2, 2, 2, 3, 1, 4, 2, 4, 2, 3, 1, 4, 1, 2, 3, 3, 1, 4, 1, 3, 2, 3, 1, 5, 1, 2, 2, 3, 3, 3, 1, 3, 2, 2, 1, 5, 1, 2, 3, 4, 1, 4, 2, 3, 2, 3, 1, 4, 1, 3, 3, 3, 1, 3, 1, 3, 3
Offset: 1

Views

Author

Antti Karttunen, May 13 2018

Keywords

Crossrefs

Programs

  • PARI
    A102460(n) = { my(u1=1,u2=3,old_u1); if(n<=2,sign(n),while(n>u2,old_u1=u1;u1=u2;u2=old_u1+u2);(u2==n)); };
    A304091(n) = sumdiv(n,d,(dA102460(d));

Formula

a(n) = Sum_{d|n, dA102460(d).
a(n) = A304092(n) - A102460(n).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 1/2 + A093540 = 2.462858... . - Amiram Eldar, Jul 05 2025

A304093 a(n) is the number of the proper divisors of n that are Lucas numbers (A000204, with 2 excluded).

Original entry on oeis.org

0, 1, 1, 1, 1, 2, 1, 2, 2, 1, 1, 3, 1, 2, 2, 2, 1, 2, 1, 2, 3, 2, 1, 3, 1, 1, 2, 3, 1, 2, 1, 2, 3, 1, 2, 4, 1, 1, 2, 2, 1, 3, 1, 3, 2, 1, 1, 3, 2, 1, 2, 2, 1, 3, 2, 3, 2, 2, 1, 3, 1, 1, 3, 2, 1, 3, 1, 2, 2, 2, 1, 4, 1, 1, 2, 2, 3, 2, 1, 2, 2, 1, 1, 4, 1, 1, 3, 3, 1, 3, 2, 2, 2, 2, 1, 3, 1, 2, 3, 2, 1, 2, 1, 2, 3
Offset: 1

Views

Author

Antti Karttunen, May 13 2018

Keywords

Crossrefs

Programs

  • PARI
    isA000204(n) = { my(u1=1,u2=3,old_u1); if(n<=2,(n%2),while(n>u2,old_u1=u1;u1=u2;u2=old_u1+u2);(u2==n)); };
    A304093(n) = sumdiv(n,d,(dA000204(d));

Formula

Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = A093540. - Amiram Eldar, Jul 05 2025
Showing 1-7 of 7 results.