Polydivisible number: Difference between revisions

Content deleted Content added
m Programming example: better to iterate directly on the list than using indexes (the index is used only to access the corresponding element in the list)
Add category
 
(7 intermediate revisions by 4 users not shown)
Line 50:
|}
 
===Estimate for ''F<mathsub>F_bb</sub>''(''n'')</math> and <math>\&Sigma;(''b'')</math>===
[[File:Graph of polydivisible number vectorial.svg|right|thumb|400px|Graph of number of <math>n</math>-digit polydivisible numbers in base 10 <math>F_{10}(n)</math> vs estimate of <math>F_{10}(n)</math>]]
 
Line 311:
 
==Programming example==
The example below searches for polydivisible numbers in [[Python (programming language)|Python]].
<syntaxhighlight lang="python">
def find_polydivisible(base: int) -> Listlist[int]:
"""Find polydivisible number."""
numbers = []
Line 362:
{{Divisor classes}}
 
[[Category:Articles with example Python (programming language) code]]
[[Category:Base-dependent integer sequences]]
[[Category:Modular arithmetic]]