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-1 of 1 results.

A364136 a(n) is the number of distinct products of nonempty submultisets of the digits of n.

Original entry on oeis.org

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

Views

Author

Ctibor O. Zizka, Jul 10 2023

Keywords

Comments

a(n) <= A000005(A051801(n)). - David A. Corneth, Mar 05 2024

Examples

			n = 10: products of digits are {0, 1, 0*1}, distinct products of digits are {0, 1}, thus a(10) = 2.
n = 11: products of digits are {1, 1*1}, distinct product of digits is {1}, thus a(11) = 1.
n = 23: products of digits are {2, 3, 2*3}, distinct products of digits are {2, 3, 6}, thus a(23) = 3.
		

Crossrefs

Programs

  • PARI
    a(n) = {if(n==0, return(1));
    	my(d = vecsort(digits(n)), l = List());
    	for(i = 1, #d,
    		forvec(x = vector(i, j, [1,#d]),
    			c = vecprod(vector(i, j, d[x[j]]));
    			listput(l, c)
    		,
    		2
    		)
    	);
    	#Set(l)
    } \\ David A. Corneth, Mar 05 2024
Showing 1-1 of 1 results.