login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A346133 Numbers N = A * B such that N (reversed digits) = A (reversed digits) * B (reversed digits). A single-digit number is its own reversal and neither A nor B has a leading zero. No pair (A, B) has both A and B palindromic or simple-digit. The reversed products are not included in the sequence. 4

%I #28 Jun 06 2023 07:40:35

%S 24,26,28,36,39,46,48,68,69,132,143,144,154,156,165,168,169,176,187,

%T 198,204,206,208,224,226,228,244,246,248,252,253,264,266,268,273,275,

%U 276,284,286,288,294,297,299,306,309,336,339,366,369,374,384,385,396,399

%N Numbers N = A * B such that N (reversed digits) = A (reversed digits) * B (reversed digits). A single-digit number is its own reversal and neither A nor B has a leading zero. No pair (A, B) has both A and B palindromic or simple-digit. The reversed products are not included in the sequence.

%H Michael S. Branicky, <a href="/A346133/b346133.txt">Table of n, a(n) for n = 1..10000</a>

%e a(1) = 24 = 2 * 12 and 2 * 21 = 42 (which is 24 reversed);

%e a(2) = 26 = 2 * 13 and 2 * 31 = 62 (which is 26 reversed);

%e a(3) = 28 = 2 * 14 and 2 * 41 = 82 (which is 28 reversed);

%e a(4) = 36 = 3 * 12 and 3 * 21 = 63 (which is 36 reversed); etc.

%t q[n_] := IntegerReverse[n] >= n && AnyTrue[Rest @ Take[(d = Divisors[n]), Ceiling[Length[d]/2]], (# > 9 || n/# > 9) && !Divisible[#, 10] && !Divisible[n/#, 10] && (!PalindromeQ[#] || !PalindromeQ[n/#]) && IntegerReverse[#] * IntegerReverse[n/#] == IntegerReverse[n] &]; Select[Range[2, 400], q] (* _Amiram Eldar_, Jul 07 2021 *)

%o (Python)

%o from sympy import divisors

%o def rev(n): return int(str(n)[::-1])

%o def ok(n):

%o divs = divisors(n)

%o for a in divs[1:(len(divs)+1)//2]:

%o b = n // a

%o reva, revb, revn = rev(a), rev(b), rev(n)

%o if revn < n or a%10 == 0 or b%10 == 0: continue

%o if (reva != a or revb != b) and revn == reva * revb: return True

%o return False

%o print(list(filter(ok, range(400)))) # _Michael S. Branicky_, Jul 06 2021

%Y Cf. A066531.

%K base,nonn

%O 1,1

%A _Eric Angelini_ and _Carole Dubois_, Jul 05 2021

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)