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.

A133967 Home primes whose homeliness is greater than 6.

This page as a plain text file.
%I A133967 #5 Apr 28 2015 15:01:26
%S A133967 3761,13367,23251,23761,31397,33797,36389,37643,37951,37967,77711,
%T A133967 77773,113779,131777,132749,132953,134129,178069,229751,233347,233617,
%U A133967 233743,233881,233911,237547,293863,311677,311821,312619,313613,313619,313739
%N A133967 Home primes whose homeliness is greater than 6.
%C A133967 Number of terms < 10^n: 0, 0, 0, 1, 12, 144, 1273, ....
%t A133967 lst = {}; f[n_] := FromDigits@ Flatten[ IntegerDigits@ Table[ #[[1]], {#[[2]]}] & /@ FactorInteger@n, 2]; h[n_] := NestWhileList[f@# &, n, !PrimeQ@# &, 1, 28]; Do[p = h[n][[ -1]]; If[ PrimeQ@p && p < 10^7 && p != n, Print[{n, p}]; AppendTo[lst, p]], {n, 2, 1000}];
%t A133967 d = 7 - 2; lsu = {}; Do[ If[ lst[[n]] == lst[[n + d]], AppendTo[ lsu, lst[[n]] ]], {n, 188004 - d - 1}]; Take[ Union@ lsu, 35]
%Y A133967 Cf. A037274, A118756, A133957, A133959, A133961, A133963, A133965, A133969, A133971, A133973, A133975, A133977, A133979.
%K A133967 nonn,base
%O A133967 1,1
%A A133967 _Robert G. Wilson v_, Sep 30 2007