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!)
A280593 Natural numbers whose digits can be formed by typing adjacent keys on a 123-456-789 keypad without repeating a digit. 7

%I #33 Jul 08 2018 02:36:38

%S 1,2,3,4,5,6,7,8,9,12,14,21,23,25,32,36,41,45,47,52,54,56,58,63,65,69,

%T 74,78,85,87,89,96,98,123,125,145,147,214,236,254,256,258,321,325,365,

%U 369,412,452,456,458,478,521,523,541,547,563,569,587,589,632,652,654,658,698,741,745,785,789

%N Natural numbers whose digits can be formed by typing adjacent keys on a 123-456-789 keypad without repeating a digit.

%C A subsequence of A010784. - _FUNG Cheok Yin_, Jul 05 2018

%H FUNG Cheok Yin, <a href="/A280593/b280593.txt">Table of n, a(n) for n = 1..653</a>

%H FUNG Cheok Yin, <a href="/A280593/a280593.cpp.txt">C++ program</a>

%e The keypad is:

%e +---+---+---+

%e | 1 | 2 | 3 |

%e +---+---+---+

%e | 4 | 5 | 6 |

%e +---+---+---+

%e | 7 | 8 | 9 |

%e +---+---+---+

%e It is visibly obvious that 2589 can be formed on the keypad.

%t g = Graph[{1 <-> 2, 1 <-> 4,

%t 2 <-> 1, 2 <-> 3, 2 <-> 5,

%t 3 <-> 2, 3 <-> 6,

%t 4 <-> 1, 4 <-> 5, 4 <-> 7,

%t 5 <-> 2, 5 <-> 4, 5 <-> 6, 5 <-> 8,

%t 6 <-> 3, 6 <-> 5, 6 <-> 9,

%t 7 <-> 4, 7 <-> 8,

%t 8 <-> 5, 8 <-> 7, 8 <-> 9,

%t 9 <-> 6, 9 <-> 8}];

%t f[{a_, b_}] := FindPath[g, a, b, Infinity, All]

%t ff = f /@ Flatten[Outer[List, r = Range[9], r], 1];

%t A280593 = Sort[Join[r, FromDigits /@ Flatten[ff, 1]]] (* _Jean-François Alcover_, Jan 06 2017 *)

%Y Cf. A010784, A280594, A280595.

%K nonn,fini,full,base

%O 1,2

%A _FUNG Cheok Yin_, Jan 06 2017

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 August 14 02:14 EDT 2024. Contains 375146 sequences. (Running on oeis4.)