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

A242592 Squarefree semiprimes, n=p*q, where reversal(n) is semiprime and reversal(n) = reversal(p)*reversal(q).

Original entry on oeis.org

6, 22, 26, 33, 39, 55, 62, 77, 93, 143, 187, 202, 226, 262, 303, 339, 341, 393, 505, 622, 626, 707, 781, 933, 939, 1111, 1177, 1243, 1313, 1441, 1469, 1661, 1717, 1991, 2042, 2062, 2066, 2206, 2402, 2426, 2446, 2462, 2602, 2642, 3063, 3093, 3099, 3131, 3309
Offset: 1

Views

Author

Michel Lagneau, May 18 2014

Keywords

Comments

Subsequence of A085751.

Examples

			1469 = 13*113 is in the sequence because reversal(1469) = 9641 = 31*311 where 31 = reversal(13) and 311 = reversal(113).
		

Crossrefs

Programs

  • Maple
    for n from 6 to 4000 do :
      x:=factorset(n):n1:=nops(x):
       if bigomega(n)= 2 and n1>1
       then                 y:=convert(n,base,10):n2:=nops(y):p:=x[1]:q:=x[2]:xp1:=convert(p,base,10):nxp1:=nops(xp1):xq1:=convert(q,base,10):nxq1:=nops(xq1):sp:=sum('xp1[i]*10^(nxp1-i)', 'i'=1..nxp1):sq:=sum('xq1[i]*10^(nxq1-i)', 'i'=1..nxq1):lst:={sp} union {sq}:s:=sum('y[i]*10^(n2-i)', 'i'=1..n2):x1:=factorset(s):nn1:=nops(x1):
        if bigomega(s)=2 and nn1>1
        then
        z:=convert(s,base,10):n3:=nops(z): p1:=x1[1]:q1:=x1[2]:
        lst1:={p1} union  {q1}:s1:=sum('z[i]*10^(n3-i)','i'=1..n3):
           if lst = lst1
            then
            printf(`%d, `,n):
            else
           fi:
         fi:
        fi:
      od:

A210665 Least semiprime dividing digit reversal of n-th semiprime, or 0 if no such factor.

Original entry on oeis.org

4, 6, 9, 0, 0, 51, 4, 22, 4, 62, 33, 0, 0, 0, 93, 4, 94, 15, 55, 15, 85, 26, 4, 4, 0, 77, 4, 58, 4, 6, 0, 39, 49, 0, 0, 111, 511, 0, 0, 121, 221, 321, 921, 0, 0, 141, 0, 341, 0, 0, 551, 851, 951, 161, 0, 961, 771, 871, 381, 581, 781, 0, 6, 202, 302, 502, 14
Offset: 1

Views

Author

Jonathan Vos Post, Mar 28 2012

Keywords

Examples

			a(4) = 0 because the 4th semiprime is 10, and R(10) = 1, which is not divisible by any semiprime.
a(6) = 51 because the 6th semiprime is 15, and R(15) = 51, which is itself semiprime.
a(7) = 4 because the 7th semiprime is 21, R(21) = 12, and 4 is the least semiprime divisor of 12.
		

Crossrefs

Programs

  • Maple
    r:= proc(n) option remember; local q;
          `if`(n<10, n, irem(n, 10, 'q') *10^(length(n)-1)+r(q))
        end:
    b:= proc(n) option remember; local k;
          if n=0 then 0
        else for k from b(n-1)+1
               while isprime(k) or 2<>add (i[2], i=ifactors(k)[2])
             do od; k
          fi
        end:
    a:= proc(n) option remember; local m, k;
          m:= r(b(n));
          for k from 4 to m do
             if irem(m, k)=0 and not isprime(k) and
                add(i[2], i=ifactors(k)[2])=2 then return k fi
          od; 0
        end:
    seq(a(n), n=1..100);  # Alois P. Heinz, Mar 28 2012

Formula

a(n) = A210615(A210616(n)).
Showing 1-2 of 2 results.