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.
%I A301506 #32 Sep 23 2020 02:48:13 %S A301506 0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5,6,6,6,6, %T A301506 6,6,6,6,6,6,7,7,7,7,7,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10, %U A301506 10,10,10,10,10,10,10,10,10,10,11,11,11,11,11 %N A301506 Number of integers less than or equal to n whose largest prime factor is 5. %C A301506 a(n) increases when n has the form 2^a*3^b*5^c, with a,b >= 0 and c > 0. %C A301506 A distinct sequence can be generated for each prime number; this sequence is for the prime number 5. For an example using another prime number see A301461. %H A301506 Robert Israel, <a href="/A301506/b301506.txt">Table of n, a(n) for n = 0..10000</a> %e A301506 a(15) = a(2^0 * 3^1 * 5^1); 5 is the largest prime factor, so a(15) exceeds the previous term by 1. For a(16) = a(2^4), there is no increase from the previous term. %p A301506 N:= 100: # for a(0)..a(N) %p A301506 L:= sort([seq(seq(seq(2^a*3^b*5^c, c=1..floor(log[5](N/(2^a*3^b)))), %p A301506 b = 0..floor(log[3](N/2^a))), a = 0 .. floor(log[2](N)))]): %p A301506 V:= Array(0..N): %p A301506 V[L]:= 1: %p A301506 ListTools:-PartialSums(convert(V,list)); # _Robert Israel_, Sep 22 2020 %t A301506 Accumulate@ Array[Boole[FactorInteger[#][[-1, 1]] == 5] &, 80, 0] (* _Michael De Vlieger_, Apr 21 2018 *) %o A301506 (MATLAB) %o A301506 clear;clc; %o A301506 prime = 5; %o A301506 limit = 10000; %o A301506 largest_divisor = ones(1,limit+1); %o A301506 for k = 0:limit %o A301506 f = factor(k); %o A301506 largest_divisor(k+1) = f(end); %o A301506 end %o A301506 for i = 1:limit+1 %o A301506 FQN(i) = sum(largest_divisor(1:i)==prime); %o A301506 end %o A301506 output = [0:limit;FQN]' %Y A301506 Cf. A080193. %Y A301506 Cf. A301461. %K A301506 nonn %O A301506 0,11 %A A301506 _Ralph-Joseph Tatt_, Mar 22 2018